Defines a style of view cube. More...
Public Member Functions | |
ModelPrs_ViewCubeStyle () | |
Constructor. More... | |
const ModelData_Color & | NormalColor () const |
Returns a color of view cube sides. | |
void | SetNormalColor (const ModelData_Color &theColor) |
Sets a normal color. | |
const ModelData_Color & | HoveredColor () 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_Color & | PressedColor () 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_Color & | TextColor () const |
Returns a color of text on view cube sides. | |
void | SetTextColor (const ModelData_Color &theColor) |
Sets a text color. | |
const ModelData_Color & | TrihedronTextColor () const |
Returns a color of trihedron axis text. | |
void | SetTrihedronTextColor (const ModelData_Color &theColor) |
Sets a trihedron text color. | |
![]() | |
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 | |
![]() | |
Base_PublicObject (const internal::Base_HandledObject *theObject) | |
Constructor (reserved for internal use). | |
template<typename T > | |
T * | GetOrCreateImpl () |
Reserved for internal use. | |
Defines a style of view cube.
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.
cadex::ModelPrs_ViewCubeStyle::ModelPrs_ViewCubeStyle | ( | ) |
Constructor.
Creates style with default values:
Property | Hex color |
---|---|
NormalColor | 0xF0F0F0 |
HoveredColor | 0xA8C8E2 |
PressedColor | 0x6CA2CE |
TextColor | 0x333333 |
TrihedronTextColor | 0x333333 |