|
|
| ccDrawableObject () |
| | Default constructor.
|
| |
|
| ccDrawableObject (const ccDrawableObject &object) |
| | Copy constructor.
|
| |
| virtual void | draw (CC_DRAW_CONTEXT &context)=0 |
| | Draws entity and its children. More...
|
| |
|
virtual bool | isVisible () const |
| | Returns whether entity is visible or not.
|
| |
|
virtual void | setVisible (bool state) |
| | Sets entity visibility.
|
| |
|
virtual void | toggleVisibility () |
| | Toggles visibility.
|
| |
|
virtual bool | isVisibilityLocked () const |
| | Returns whether visibility is locked or not.
|
| |
| virtual void | lockVisibility (bool state) |
| | Locks/unlocks visibility. More...
|
| |
|
virtual bool | isSelected () const |
| | Returns whether entity is selected or not.
|
| |
|
virtual void | setSelected (bool state) |
| | Selects/unselects entity.
|
| |
| virtual void | getDrawingParameters (glDrawParams ¶ms) const |
| | Returns main OpenGL parameters for this entity. More...
|
| |
| virtual bool | hasColors () const |
| | Returns whether colors are enabled or not. More...
|
| |
|
virtual bool | colorsShown () const |
| | Returns whether colors are shown or not.
|
| |
|
virtual void | showColors (bool state) |
| | Sets colors visibility.
|
| |
|
virtual void | toggleColors () |
| | Toggles colors display state.
|
| |
| virtual bool | hasNormals () const |
| | Returns whether normals are enabled or not. More...
|
| |
| virtual bool | normalsShown () const |
| | Returns whether normals are shown or not. More...
|
| |
| virtual void | showNormals (bool state) |
| | Sets normals visibility. More...
|
| |
|
virtual void | toggleNormals () |
| | Toggles normals display state.
|
| |
| virtual bool | hasDisplayedScalarField () const |
| | Returns whether an active scalar field is available or not. More...
|
| |
| virtual bool | hasScalarFields () const |
| | Returns whether one or more scalar fields are instantiated. More...
|
| |
|
virtual void | showSF (bool state) |
| | Sets active scalarfield visibility.
|
| |
|
virtual void | toggleSF () |
| | Toggles SF display state.
|
| |
|
virtual bool | sfShown () const |
| | Returns whether active scalar field is visible.
|
| |
| virtual void | toggleMaterials () |
| | Toggles material display state. More...
|
| |
|
virtual void | showNameIn3D (bool state) |
| | Sets whether name should be displayed in 3D or not.
|
| |
|
virtual bool | nameShownIn3D () const |
| | Returns whether name is displayed in 3D or not.
|
| |
|
virtual void | toggleShowName () |
| | Toggles name in 3D display state.
|
| |
| virtual bool | isColorOverridden () const |
| | Returns whether colors are currently overridden by a temporary (unique) color. More...
|
| |
|
virtual const ccColor::Rgba & | getTempColor () const |
| | Returns current temporary (unique) color.
|
| |
| virtual void | setTempColor (const ccColor::Rgba &col, bool autoActivate=true) |
| | Sets current temporary (unique) More...
|
| |
| virtual void | setTempColor (const ccColor::Rgb &col, bool autoActivate=true) |
| | Sets current temporary (unique) More...
|
| |
|
virtual void | enableTempColor (bool state) |
| | Set temporary color activation state.
|
| |
|
virtual void | removeFromDisplay (const ccGenericGLDisplay *win) |
| | Unlinks entity from a GL display (only if it belongs to it of course)
|
| |
|
virtual void | setDisplay (ccGenericGLDisplay *win) |
| | Sets associated GL display.
|
| |
|
virtual ccGenericGLDisplay * | getDisplay () const |
| | Returns associated GL display.
|
| |
|
virtual void | redrawDisplay () |
| | Redraws associated GL display.
|
| |
| virtual void | prepareDisplayForRefresh () |
| | Sets associated GL display 'refreshable' before global refresh. More...
|
| |
| virtual void | refreshDisplay (bool only2D=false) |
| | Refreshes associated GL display. More...
|
| |
| virtual void | setGLTransformation (const ccGLMatrix &trans) |
| | Associates entity with a GL transformation (rotation + translation) More...
|
| |
| virtual void | enableGLTransformation (bool state) |
| | Enables/disables associated GL transformation. More...
|
| |
|
virtual bool | isGLTransEnabled () const |
| | Returns whether a GL transformation is enabled or not.
|
| |
| virtual const ccGLMatrix & | getGLTransformation () const |
| | Returns associated GL transformation. More...
|
| |
| virtual void | resetGLTransformation () |
| | Resets associated GL transformation. More...
|
| |
| virtual void | rotateGL (const ccGLMatrix &rotMat) |
| | Multiplies (left) current GL transformation by a rotation matrix. More...
|
| |
| virtual void | translateGL (const CCVector3 &trans) |
| | Translates current GL transformation by a rotation matrix. More...
|
| |
|
virtual void | removeAllClipPlanes () |
| | Removes all clipping planes (if any)
|
| |
| virtual bool | addClipPlanes (const ccClipPlane &plane) |
| | Registers a new clipping plane. More...
|
| |
| virtual void | toggleClipPlanes (CC_DRAW_CONTEXT &context, bool enable) |
| | Enables or disables clipping planes (OpenGL) More...
|
| |
| virtual bool | pushDisplayState () |
| | Pushes the current display state. More...
|
| |
| virtual void | popDisplayState (bool apply=true) |
| | Pops the last pushed display state. More...
|
| |
|
virtual void | applyDisplayState (const DisplayState &state) |
| | Applies a display state.
|
| |
|
| bool | m_visible |
| | Specifies whether the object is visible or not. More...
|
| |
|
bool | m_selected |
| | Specifies whether the object is selected or not.
|
| |
|
bool | m_lockedVisibility |
| | Specifies whether the visibility can be changed by user or not.
|
| |
|
bool | m_colorsDisplayed |
| | Specifies whether colors should be displayed.
|
| |
|
bool | m_normalsDisplayed |
| | Specifies whether normals should be displayed.
|
| |
|
bool | m_sfDisplayed |
| | Specifies whether scalar field should be displayed.
|
| |
|
ccColor::Rgba | m_tempColor |
| | Temporary (unique) color.
|
| |
|
bool | m_colorIsOverridden |
| | Temporary (unique) color activation state.
|
| |
| ccGLMatrix | m_glTrans |
| | Current GL transformation. More...
|
| |
| bool | m_glTransEnabled |
| | Current GL transformation activation state. More...
|
| |
|
bool | m_showNameIn3D |
| | Whether name is displayed in 3D or not.
|
| |
|
CCVector3d | m_nameIn3DPos |
| | Last 2D position of the '3D' name.
|
| |
|
bool | m_nameIn3DPosIsValid |
| | Whether the last 2D position of the '3D' name is valid or not.
|
| |
|
ccGenericGLDisplay * | m_currentDisplay |
| | Currently associated GL display.
|
| |
|
ccClipPlaneSet | m_clipPlanes |
| | Active clipping planes (used for display only)
|
| |
|
std::vector< DisplayState::Shared > | m_displayStateStack |
| | The stack of pushed display states.
|
| |
Generic interface for (3D) drawable entities.