 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
38 inline virtual bool isVisible()
const {
return m_visible; }
40 inline virtual void setVisible(
bool state) { m_visible = state; }
46 inline virtual bool isRedraw()
const {
return m_modelRedraw; }
48 inline virtual void setRedraw(
bool state) { m_modelRedraw = state; }
52 inline virtual void setFixedId(
bool state) { m_fixedId = state; }
53 inline virtual bool isFixedId() {
return m_fixedId; }
57 return m_lockedVisibility;
64 m_lockedVisibility = state;
68 inline virtual bool isSelected()
const {
return m_selected; }
70 inline virtual void setSelected(
bool state) { m_selected = state; }
77 virtual void getDrawingParameters(
glDrawParams& params)
const;
80 inline virtual bool hasColors()
const {
return false; }
82 inline virtual bool colorsShown()
const {
return m_colorsDisplayed; }
84 inline virtual void showColors(
bool state) { m_colorsDisplayed = state; }
91 inline virtual bool normalsShown()
const {
return m_normalsDisplayed; }
93 inline virtual void showNormals(
bool state) { m_normalsDisplayed = state; }
109 m_sfDisplayed = state;
114 inline virtual void toggleSF() { showSF(!sfShown()); }
117 inline virtual bool sfShown()
const {
return m_sfDisplayed; }
125 inline virtual void showNameIn3D(
bool state) { m_showNameIn3D = state; }
139 return m_colorIsOverridden;
152 bool autoActivate =
true);
156 m_colorIsOverridden = state;
160 inline virtual float getOpacity()
const {
return m_opacity; }
178 virtual void setGLTransformation(
const ccGLMatrix& trans);
183 virtual void enableGLTransformation(
bool state);
200 virtual void resetGLTransformation();
207 virtual void rotateGL(
const ccGLMatrix& rotMat);
214 virtual void translateGL(
const CCVector3& trans);
223 virtual bool addClipPlanes(
const ccClipPlane& plane);
237 using Shared = QSharedPointer<DisplayState>;
239 bool visible =
false;
240 bool colorsDisplayed =
false;
241 bool normalsDisplayed =
false;
242 bool sfDisplayed =
false;
243 bool colorIsOverridden =
false;
244 bool showNameIn3D =
false;
248 virtual bool pushDisplayState();
251 virtual void popDisplayState(
bool apply =
true);
254 virtual void applyDisplayState(
const DisplayState& state);
virtual void toggleVisibility()
Toggles visibility.
Definition: ecvDrawableObject.h:43
virtual void setFixedId(bool state)
Definition: ecvDrawableObject.h:52
bool m_fixedId
Definition: ecvDrawableObject.h:257
virtual void showNormals(bool state)
Sets normals visibility.
Definition: ecvDrawableObject.h:93
bool m_normalsDisplayed
Specifies whether normals should be displayed.
Definition: ecvDrawableObject.h:276
bool m_glTransEnabled
Current GL transformation activation state.
Definition: ecvDrawableObject.h:292
Simple (clipping) plane equation.
Definition: ecvDrawableObject.h:18
bool m_lockedVisibility
Specifies whether the visibility can be changed by user or not.
Definition: ecvDrawableObject.h:271
virtual bool normalsShown() const
Returns whether normals are shown or not.
Definition: ecvDrawableObject.h:91
std::vector< ccClipPlane > ccClipPlaneSet
Definition: ecvDrawableObject.h:21
ecvColor::Rgb m_tempColor
Temporary (unique) color.
Definition: ecvDrawableObject.h:281
virtual void toggleNormals()
Toggles normals display state.
Definition: ecvDrawableObject.h:95
bool m_colorIsOverridden
Temporary (unique) color activation state.
Definition: ecvDrawableObject.h:283
virtual void setSelected(bool state)
Selects/Unselects entity.
Definition: ecvDrawableObject.h:70
virtual void toggleSF()
Toggles SF display state.
Definition: ecvDrawableObject.h:114
virtual bool isColorOverridden() const
Definition: ecvDrawableObject.h:138
ccClipPlaneSet m_clipPlanes
Active clipping planes (used for display only)
Definition: ecvDrawableObject.h:300
QSharedPointer< DisplayState > Shared
Definition: ecvDrawableObject.h:237
virtual void toggleMaterials()
Toggles material display state.
Definition: ecvDrawableObject.h:121
std::vector< DisplayState::Shared > m_displayStateStack
The stack of pushed display states.
Definition: ecvDrawableObject.h:303
virtual bool hasScalarFields() const
Returns whether one or more scalar fields are instantiated.
Definition: ecvDrawableObject.h:105
virtual bool hasNormals() const
Returns whether normals are enabled or not.
Definition: ecvDrawableObject.h:89
virtual bool isSelected() const
Returns whether entity is selected or not.
Definition: ecvDrawableObject.h:68
virtual void lockVisibility(bool state)
Locks/unlocks visibility.
Definition: ecvDrawableObject.h:63
bool m_selected
Specifies whether the object is selected or not.
Definition: ecvDrawableObject.h:268
ImGuiContext * context
Definition: Window.cpp:76
virtual void showColors(bool state)
Sets colors visibility.
Definition: ecvDrawableObject.h:84
virtual void toggleColors()
Toggles colors display state.
Definition: ecvDrawableObject.h:86
ccGLMatrix m_glTrans
Current GL transformation.
Definition: ecvDrawableObject.h:288
virtual const ccGLMatrix & getGLTransformation() const
Returns associated GL transformation.
Definition: ecvDrawableObject.h:191
virtual bool nameShownIn3D() const
Returns whether name is displayed in 3D or not.
Definition: ecvDrawableObject.h:128
Display parameters of a 3D entity.
Definition: ecvDrawContext.h:25
virtual void setForceRedraw(bool state)
Sets force redraw.
Definition: ecvDrawableObject.h:50
virtual bool hasDisplayedScalarField() const
Returns whether an active scalar field is available or not.
Definition: ecvDrawableObject.h:99
bool m_sfDisplayed
Specifies whether scalar field should be displayed.
Definition: ecvDrawableObject.h:278
Generic interface for (3D) drawable entities.
Definition: ecvDrawableObject.h:24
virtual bool colorsShown() const
Returns whether colors are shown or not.
Definition: ecvDrawableObject.h:82
virtual void showSF(bool state)
Sets active scalarfield visibility.
Definition: ecvDrawableObject.h:108
virtual void setVisible(bool state)
Sets entity visibility.
Definition: ecvDrawableObject.h:40
bool m_visible
Specifies whether the object is visible or not.
Definition: ecvDrawableObject.h:265
virtual void setOpacity(float opacity)
Set opacity activation state.
Definition: ecvDrawableObject.h:163
DisplayState()
Definition: ecvDrawableObject.h:234
float m_opacity
Definition: ecvDrawableObject.h:260
Float version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:19
virtual void enableTempColor(bool state)
Set temporary color activation state.
Definition: ecvDrawableObject.h:155
virtual void removeAllClipPlanes()
Removes all clipping planes (if any)
Definition: ecvDrawableObject.h:218
Display state.
Definition: ecvDrawableObject.h:233
virtual bool sfShown() const
Returns whether active scalar field is visible.
Definition: ecvDrawableObject.h:117
virtual void setRedraw(bool state)
Sets entity redraw mode.
Definition: ecvDrawableObject.h:48
RGB color structure.
Definition: ecvColorTypes.h:49
virtual void showNameIn3D(bool state)
Sets whether name should be displayed in 3D.
Definition: ecvDrawableObject.h:125
virtual bool isVisible() const
Returns whether entity is visible or not.
Definition: ecvDrawableObject.h:38
bool m_modelRedraw
Definition: ecvDrawableObject.h:258
virtual bool hasColors() const
Returns whether colors are enabled or not.
Definition: ecvDrawableObject.h:80
virtual bool isGLTransEnabled() const
Returns whether a GL transformation is enabled or not.
Definition: ecvDrawableObject.h:186
Tuple4Tpl< double > equation
Definition: ecvDrawableObject.h:19
bool m_colorsDisplayed
Specifies whether colors should be displayed.
Definition: ecvDrawableObject.h:274
#define CV_DB_LIB_API
Definition: CV_db.h:15
Display context.
Definition: ecvDrawContext.h:365
virtual bool isRedraw() const
Returns whether entity is to be redraw.
Definition: ecvDrawableObject.h:46
bool m_forceRedraw
Definition: ecvDrawableObject.h:259
virtual float getOpacity() const
Definition: ecvDrawableObject.h:160
bool m_showNameIn3D
Whether name is displayed in 3D or not.
Definition: ecvDrawableObject.h:295
virtual bool isFixedId()
Definition: ecvDrawableObject.h:53
virtual bool isVisibilityLocked() const
Returns whether visibility is locked or not.
Definition: ecvDrawableObject.h:56
virtual const ecvColor::Rgb & getTempColor() const
Returns current temporary (unique) color.
Definition: ecvDrawableObject.h:143
virtual void toggleShowName()
Toggles name in 3D display state.
Definition: ecvDrawableObject.h:131
CCVector3d m_nameIn3DPos
Last 2D position of the '3D' name.
Definition: ecvDrawableObject.h:297