PaintView Class Reference Library » Paint

#include <lib_paint.h>

详细描述

Represents a Texture View.

公共成员函数

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

静态公共成员函数

static void  Free ( PaintView *&p)

私有成员函数

  PaintView ()
  ~PaintView ()

构造函数 & 析构函数文档编制

◆  PaintView()

PaintView () private

◆  ~PaintView()

~ PaintView () private

成员函数文档编制

◆  Free()

static void Free ( PaintView *&  p )
static

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

参数
[in] p The 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.

参数
[out] showMesh Assigned true if enabled, otherwise false .
返回
true if successful, otherwise false .

◆  SetShowMesh()

Bool SetShowMesh ( Bool   showMesh )

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

参数
[in] showMesh true to enable the option.
返回
true if successful, otherwise false .

◆  GetShowMeshWireframe()

Bool GetShowMeshWireframe ( Bool showMesh )

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

参数
[out] showMesh Assigned true if enabled, otherwise false .
返回
true if successful, otherwise false .

◆  SetShowMeshWireframe()

Bool SetShowMeshWireframe ( Bool   showMesh )

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

参数
[in] showMesh true to enable the option.
返回
true if successful, otherwise false .

◆  SetContextFromSelection()

Bool SetContextFromSelection ( )

Updates the view context with the current selection.

返回
true if successful, otherwise false .

◆  FitToScreen()

Bool FitToScreen ( )

Applies the "View > Fit to Screen" feature.

返回
true if successful, otherwise false .