Hide menu
cadex::ModelPrs_ViewCubeStyle Class Reference

Defines a style of view cube. More...

Inheritance diagram for cadex::ModelPrs_ViewCubeStyle:
cadex::Base_PublicObject

Public Member Functions

 ModelPrs_ViewCubeStyle ()
 Constructor. More...
 
const ModelData_ColorNormalColor () const
 Returns a color of view cube sides.
 
void SetNormalColor (const ModelData_Color &theColor)
 Sets a normal color.
 
const ModelData_ColorHoveredColor () const
 Returns a color of view cube side when mouse cursor is hovering it.
 
void SetHoveredColor (const ModelData_Color &theColor)
 Sets hovered color.
 
const ModelData_ColorPressedColor () const
 Returns a color of view cube side when mouse cursor is hovering it and left button is pressed down.
 
void SetPressedColor (const ModelData_Color &theColor)
 Sets pressed color.
 
const ModelData_ColorTextColor () const
 Returns a color of text on view cube sides.
 
void SetTextColor (const ModelData_Color &theColor)
 Sets a text color.
 
const ModelData_ColorTrihedronTextColor () const
 Returns a color of trihedron axis text.
 
void SetTrihedronTextColor (const ModelData_Color &theColor)
 Sets a trihedron text color.
 
- Public Member Functions inherited from cadex::Base_PublicObject
 Base_PublicObject ()
 Constructor. More...
 
void Nullify ()
 Resets reference to implementation object.
 
bool IsNull () const
 Returns true if the object is nullified. More...
 
 operator bool () const
 Casts the object to the bool type. More...
 
internal::Base_HandledObject * Impl () const
 Return a handle to backend (reserved for internal use).
 
const internal::Base_Handle & HImpl () const
 
template<typename T >
T * Impl () const
 Reserved for internal use.
 
bool operator== (const Base_PublicObject &theObject) const
 
bool operator!= (const Base_PublicObject &theObject) const
 

Additional Inherited Members

- Protected Member Functions inherited from cadex::Base_PublicObject
 Base_PublicObject (const internal::Base_HandledObject *theObject)
 Constructor (reserved for internal use).
 
template<typename T >
T * GetOrCreateImpl ()
 Reserved for internal use.
 

Detailed Description

Defines a style of view cube.

Warning
This class is a part of Visualization Toolkit add-on, which is licensed separately from the base CAD Exchanger SDK.
See also
Viewcube

A view cube style contains a shared pointer to its internal implementation, so simple copying an object will just copy a shared pointer. Therefore any modification of the copied object will propagate to original object.

See also
Using pimpl pattern

Constructor & Destructor Documentation

◆ ModelPrs_ViewCubeStyle()

cadex::ModelPrs_ViewCubeStyle::ModelPrs_ViewCubeStyle ( )

Constructor.

Creates style with default values:

PropertyHex color
NormalColor0xF0F0F0
HoveredColor0xA8C8E2
PressedColor0x6CA2CE
TextColor0x333333
TrihedronTextColor0x333333