PaintView Class Reference

#include <lib_paint.h>

Detailed Description

Represents a Texture View.

Public Member Functions

Bool GetShowMesh (Bool &showMesh)
 
Bool SetShowMesh (Bool showMesh)
 
Bool GetShowMeshWireframe (Bool &showMesh)
 
Bool SetShowMeshWireframe (Bool showMesh)
 
Bool SetContextFromSelection ()
 
Bool FitToScreen ()
 

Static Public Member Functions

static void Free (PaintView *&p)
 

Private Member Functions

 PaintView ()
 
 ~PaintView ()
 

Constructor & Destructor Documentation

◆ PaintView()

PaintView ( )
private

◆ ~PaintView()

~PaintView ( )
private

Member Function Documentation

◆ Free()

static void Free ( PaintView *&  p)
static

Destructs PaintView instances allocated with Alloc(). Use AutoAlloc to automate the allocation and destruction based on scope.

Parameters
[in]pThe PaintView instance to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards.

◆ GetShowMesh()

Bool GetShowMesh ( Bool showMesh)

Gets the "View > Show UV Display" option status for the view.

Parameters
[out]showMeshAssigned true if enabled, otherwise false.
Returns
true if successful, otherwise false.

◆ SetShowMesh()

Bool SetShowMesh ( Bool  showMesh)

Sets the "View > Show UV Display" option status for the view.

Parameters
[in]showMeshtrue to enable the option.
Returns
true if successful, otherwise false.

◆ GetShowMeshWireframe()

Bool GetShowMeshWireframe ( Bool showMesh)

Gets the "View > Show UV Mesh" option status for the view.

Parameters
[out]showMeshAssigned true if enabled, otherwise false.
Returns
true if successful, otherwise false.

◆ SetShowMeshWireframe()

Bool SetShowMeshWireframe ( Bool  showMesh)

Sets the "View > Show UV Mesh" option status for the view.

Parameters
[in]showMeshtrue to enable the option.
Returns
true if successful, otherwise false.

◆ SetContextFromSelection()

Bool SetContextFromSelection ( )

Updates the view context with the current selection.

Returns
true if successful, otherwise false.

◆ FitToScreen()

Bool FitToScreen ( )

Applies the "View > Fit to Screen" feature.

Returns
true if successful, otherwise false.