![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Hierarchical CLOUDVIEWER Object. More...
#include <ecvHObject.h>


Public Types | |
| enum | DEPENDENCY_FLAGS { DP_NONE = 0 , DP_NOTIFY_OTHER_ON_DELETE = 1 , DP_NOTIFY_OTHER_ON_UPDATE , DP_DELETE_OTHER = 8 , DP_PARENT_OF_OTHER = 24 } |
| Dependency flags. More... | |
| enum | SelectionBehavior { SELECTION_AA_BBOX , SELECTION_FIT_BBOX , SELECTION_IGNORED } |
| Behavior when selected. More... | |
| using | Container = std::vector< ccHObject * > |
| Standard instances container (for children, etc.) More... | |
| using | Shared = QSharedPointer< ccHObject > |
| Shared pointer. More... | |
| using | SharedContainer = std::vector< Shared > |
| Shared instances container (for children, etc.) More... | |
| using | GlobalBoundingBox = cloudViewer::BoundingBoxTpl< double > |
| Global (non-shifted) bounding-box. More... | |
Public Types inherited from ccSerializableObject | |
| enum | DeserializationFlags { DF_POINT_COORDS_64_BITS , DF_SCALAR_VAL_32_BITS = 2 } |
| Deserialization flags (bit-field) More... | |
| typedef QMultiMap< unsigned, unsigned > | LoadedIDMap |
| Map of loaded unique IDs (old ID --> new ID) More... | |
Public Member Functions | |
| ccHObject (QString name=QString()) | |
| Default constructor. More... | |
| ccHObject (const ccHObject &object) | |
| Copy constructor. More... | |
| virtual | ~ccHObject () override |
| Default destructor. More... | |
| virtual bool | IsEmpty () const |
| virtual Eigen::Vector3d | GetMinBound () const |
| Returns min bounds for geometry coordinates. More... | |
| virtual Eigen::Vector2d | GetMin2DBound () const |
| virtual Eigen::Vector3d | GetMaxBound () const |
| Returns max bounds for geometry coordinates. More... | |
| virtual Eigen::Vector2d | GetMax2DBound () const |
| virtual Eigen::Vector3d | GetCenter () const |
| Returns the center of the geometry coordinates. More... | |
| virtual ccBBox | GetAxisAlignedBoundingBox () const |
| Returns an axis-aligned bounding box of the geometry. More... | |
| virtual ecvOrientedBBox | GetOrientedBoundingBox () const |
| virtual ccHObject & | Transform (const Eigen::Matrix4d &transformation) |
| Apply transformation (4x4 matrix) to the geometry coordinates. More... | |
| virtual ccHObject & | Translate (const Eigen::Vector3d &translation, bool relative=true) |
| Apply translation to the geometry coordinates. More... | |
| virtual ccHObject & | Scale (const double s, const Eigen::Vector3d ¢er) |
Apply scaling to the geometry coordinates. Given a scaling factor , and center , a given point is transformed according to . More... | |
| virtual ccHObject & | Scale (const double s) |
| virtual ccHObject & | Rotate (const Eigen::Matrix3d &R, const Eigen::Vector3d ¢er) |
Apply rotation to the geometry coordinates and normals. Given a rotation matrix , and center , a given point is transformed according to . More... | |
| virtual ccHObject & | Rotate (const Eigen::Matrix3d &R) |
| QString | getViewId () const |
| CV_CLASS_ENUM | getClassID () const override |
| Returns class ID. More... | |
| bool | isGroup () const |
| Returns whether the instance is a group. More... | |
| ccHObject * | getParent () const |
| Returns parent object. More... | |
| virtual QIcon | getIcon () const |
| Returns the icon associated to this entity. More... | |
| void | addDependency (ccHObject *otherObject, int flags, bool additive=true) |
| Adds a new dependence (additive or not) More... | |
| int | getDependencyFlagsWith (const ccHObject *otherObject) |
| Returns the dependency flags with a given object. More... | |
| void | removeDependencyWith (ccHObject *otherObject) |
| Removes any dependency flags with a given object. More... | |
| void | removeDependencyFlag (ccHObject *otherObject, DEPENDENCY_FLAGS flag) |
| Removes a given dependency flag. More... | |
| virtual bool | addChild (ccHObject *child, int dependencyFlags=DP_PARENT_OF_OTHER, int insertIndex=-1) |
| Adds a child. More... | |
| unsigned | getChildrenNumber () const |
| Returns the number of children. More... | |
| unsigned int | getChildCountRecursive () const |
| Returns the total number of children under this object recursively. More... | |
| ccHObject * | getChild (unsigned childPos) const |
| Returns the ith child. More... | |
| ccHObject * | find (unsigned uniqueID) |
| Finds an entity in this object hierarchy. More... | |
| unsigned | filterChildren (Container &filteredChildren, bool recursive=false, CV_CLASS_ENUM filter=CV_TYPES::OBJECT, bool strict=false) const |
| Collects the children corresponding to a certain pattern. More... | |
| void | detachChild (ccHObject *child) |
| Detaches a specific child. More... | |
| void | detachAllChildren () |
| Removes a specific child. More... | |
| void | getTypeID_recursive (std::vector< removeInfo > &rmInfos, bool relative) |
| void | getTypeID_recursive (std::vector< hideInfo > &hdInfos, bool relative) |
| void | removeChild (ccHObject *child) |
| void | removeChild (int pos) |
| Removes a specific child given its index. More... | |
| void | removeAllChildren () |
| Removes all children. More... | |
| int | getChildIndex (const ccHObject *aChild) const |
| Returns child index. More... | |
| void | swapChildren (unsigned firstChildIndex, unsigned secondChildIndex) |
| Swaps two children. More... | |
| int | getIndex () const |
| Returns index relatively to its parent or -1 if no parent. More... | |
| void | transferChild (ccHObject *child, ccHObject &newParent) |
| Transfer a given child to another parent. More... | |
| void | transferChildren (ccHObject &newParent, bool forceFatherDependent=false) |
| Transfer all children to another parent. More... | |
| ccHObject * | getFirstChild () const |
| Shortcut: returns first child. More... | |
| ccHObject * | getLastChild () const |
| Shortcut: returns last child. More... | |
| bool | isAncestorOf (const ccHObject *anObject) const |
| Returns true if the current object is an ancestor of the specified one. More... | |
| void | removeFromRenderScreen (bool recursive=true) |
| void | hideObject_recursive (bool recursive) |
| void | hideBB (CC_DRAW_CONTEXT context) |
| void | showBB (CC_DRAW_CONTEXT context) |
| virtual ccBBox | getOwnBB (bool withGLFeatures=false) |
| Returns the entity's own bounding-box. More... | |
| void | setRedrawFlagRecursive (bool redraw=false) |
| void | setForceRedrawRecursive (bool redraw=false) |
| void | setPointSizeRecursive (int pSize) |
| void | setLineWidthRecursive (PointCoordinateType width) |
| virtual ccBBox | getBB_recursive (bool withGLFeatures=false, bool onlyEnabledChildren=true) |
| Returns the bounding-box of this entity and it's children. More... | |
| virtual GlobalBoundingBox | getOwnGlobalBB (bool withGLFeatures=false) |
| virtual bool | getOwnGlobalBB (CCVector3d &minCorner, CCVector3d &maxCorner) |
| virtual GlobalBoundingBox | getGlobalBB_recursive (bool withGLFeatures=false, bool onlyEnabledChildren=true) |
| Returns the global bounding-box of this entity and it's children. More... | |
| virtual ccBBox | getDisplayBB_recursive (bool relative) |
| Returns the bounding-box of this entity and it's children WHEN DISPLAYED. More... | |
| virtual ccBBox | getOwnFitBB (ccGLMatrix &trans) |
| Returns best-fit bounding-box (if available) More... | |
| virtual void | drawBB (CC_DRAW_CONTEXT &context, const ecvColor::Rgb &col) |
| Draws the entity (and its children) bounding-box. More... | |
| void | draw (CC_DRAW_CONTEXT &context) override |
| Draws entity and its children. More... | |
| void | updateNameIn3DRecursive () |
| void | setHideShowType (CC_DRAW_CONTEXT &context) |
| void | setRemoveType (CC_DRAW_CONTEXT &context) |
| ENTITY_TYPE | getEntityType () const |
| virtual void | redrawDisplay (bool forceRedraw=true, bool only2D=false) |
| Redraws associated display. More... | |
| bool | getAbsoluteGLTransformation (ccGLMatrix &trans) const |
| virtual bool | isDisplayed () const |
| Returns whether the object is actually displayed (visible) or not. More... | |
| virtual bool | isBranchEnabled () const |
| Returns whether the object and all its ancestors are enabled. More... | |
| virtual void | redrawDisplay_recursive (bool p) |
| virtual void | refreshDisplay_recursive (bool p) |
| virtual void | setSelected_recursive (bool p) |
| virtual void | toggleActivation_recursive () |
| virtual void | toggleVisibility_recursive () |
| virtual void | toggleColors_recursive () |
| virtual void | resetGLTransformationHistory_recursive () |
| virtual void | toggleNormals_recursive () |
| virtual void | toggleSF_recursive () |
| virtual void | toggleShowName_recursive () |
| unsigned | findMaxUniqueID_recursive () const |
| Returns the max 'unique ID' of this entity and its siblings. More... | |
| void | applyGLTransformation_recursive (const ccGLMatrix *trans=nullptr) |
| Applies the active OpenGL transformation to the entity (recursive) More... | |
| virtual void | notifyGeometryUpdate () |
| bool | isSerializable () const override |
| Returns whether object is serializable of not. More... | |
| bool | toFile (QFile &out, short dataVersion) const override |
| Saves data to binary stream. More... | |
| bool | fromFile (QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap) override |
| Loads data from binary stream. More... | |
| short | minimumFileVersion () const override |
| Returns the minimum file version required to save this instance. More... | |
| bool | fromFileNoChildren (QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap) |
| Custom version of ccSerializableObject::fromFile. More... | |
| virtual bool | isShareable () const |
| Returns whether object is shareable or not. More... | |
| virtual void | setSelectionBehavior (SelectionBehavior mode) |
| Sets selection behavior (when displayed) More... | |
| virtual SelectionBehavior | getSelectionBehavior () const |
| Returns selection behavior. More... | |
| virtual unsigned | getUniqueIDForDisplay () const |
| Returns object unqiue ID used for display. More... | |
| virtual const ccGLMatrix & | getGLTransformationHistory () const |
| Returns the transformation 'history' matrix. More... | |
| virtual void | setGLTransformationHistory (const ccGLMatrix &mat) |
| Sets the transformation 'history' matrix (handle with care!) More... | |
| virtual void | resetGLTransformationHistory () |
| Resets the transformation 'history' matrix. More... | |
| bool | pushDisplayState () override |
| Pushes the current display state (overridden) More... | |
| void | popDisplayState (bool apply=true) override |
| Pops the last pushed display state (overridden) More... | |
Public Member Functions inherited from ccObject | |
| ccObject (QString name=QString()) | |
| Default constructor. More... | |
| ccObject (const ccObject &object) | |
| Copy constructor. More... | |
| virtual QString | getName () const |
| Returns object name. More... | |
| virtual void | setName (const QString &name) |
| Sets object name. More... | |
| virtual void | setRemoveFlag (bool removeFlag) |
| Sets removeFlag. More... | |
| virtual bool | getRemoveFlag () |
| Returns removeFlag. More... | |
| virtual unsigned | getUniqueID () const |
| Returns object unique ID. More... | |
| virtual void | setUniqueID (unsigned ID) |
| Changes unique ID. More... | |
| virtual bool | isEnabled () const |
| Returns whether the object is enabled or not. More... | |
| virtual void | setEnabled (bool state) |
| Sets the "enabled" property. More... | |
| virtual void | toggleActivation () |
| Toggles the "enabled" property. More... | |
| virtual bool | isLocked () const |
| Returns whether the object is locked or not. More... | |
| virtual void | setLocked (bool state) |
| Sets the "enabled" property. More... | |
| bool | isLeaf () const |
| bool | isCustom () const |
| bool | isHierarchy () const |
| bool | isKindOf (CV_CLASS_ENUM type) const |
| bool | isA (CV_CLASS_ENUM type) const |
| QVariant | getMetaData (const QString &key) const |
| Returns a given associated meta data. More... | |
| bool | removeMetaData (const QString &key) |
| Removes a given associated meta-data. More... | |
| void | setMetaData (const QString &key, const QVariant &data) |
| Sets a meta-data element. More... | |
| void | setMetaData (const QVariantMap &dataset, bool overwrite=false) |
| Sets several meta-data elements at a time. More... | |
| bool | hasMetaData (const QString &key) const |
| Returns whether a meta-data element with the given key exists or not. More... | |
| const QVariantMap & | metaData () const |
| Returns meta-data map (const only) More... | |
| void | setBaseName (const QString &baseName) |
| QString | getBaseName () const |
| void | setFullPath (const QString &fullPaht) |
| QString | getFullPath () const |
Public Member Functions inherited from ccSerializableObject | |
| virtual | ~ccSerializableObject ()=default |
| Destructor. More... | |
Public Member Functions inherited from ccDrawableObject | |
| ccDrawableObject () | |
| Default constructor. More... | |
| ccDrawableObject (const ccDrawableObject &object) | |
| Copy constructor. More... | |
| virtual | ~ccDrawableObject ()=default |
| virtual bool | isVisible () const |
| Returns whether entity is visible or not. More... | |
| virtual void | setVisible (bool state) |
| Sets entity visibility. More... | |
| virtual void | toggleVisibility () |
| Toggles visibility. More... | |
| virtual bool | isRedraw () const |
| Returns whether entity is to be redraw. More... | |
| virtual void | setRedraw (bool state) |
| Sets entity redraw mode. More... | |
| virtual void | setForceRedraw (bool state) |
| Sets force redraw. More... | |
| virtual void | setFixedId (bool state) |
| virtual bool | isFixedId () |
| virtual bool | isVisibilityLocked () const |
| Returns whether visibility is locked or not. More... | |
| virtual void | lockVisibility (bool state) |
| Locks/unlocks visibility. More... | |
| virtual bool | isSelected () const |
| Returns whether entity is selected or not. More... | |
| virtual void | setSelected (bool state) |
| Selects/Unselects entity. More... | |
| 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. More... | |
| virtual void | showColors (bool state) |
| Sets colors visibility. More... | |
| virtual void | toggleColors () |
| Toggles colors display state. More... | |
| 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. More... | |
| 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. More... | |
| virtual void | toggleSF () |
| Toggles SF display state. More... | |
| virtual bool | sfShown () const |
| Returns whether active scalar field is visible. More... | |
| virtual void | toggleMaterials () |
| Toggles material display state. More... | |
| virtual void | showNameIn3D (bool state) |
| Sets whether name should be displayed in 3D. More... | |
| virtual bool | nameShownIn3D () const |
| Returns whether name is displayed in 3D or not. More... | |
| virtual void | toggleShowName () |
| Toggles name in 3D display state. More... | |
| virtual bool | isColorOverridden () const |
| virtual const ecvColor::Rgb & | getTempColor () const |
| Returns current temporary (unique) color. More... | |
| virtual void | setTempColor (const ecvColor::Rgb &col, bool autoActivate=true) |
| Sets current temporary (unique) More... | |
| virtual void | enableTempColor (bool state) |
| Set temporary color activation state. More... | |
| virtual float | getOpacity () const |
| virtual void | setOpacity (float opacity) |
| Set opacity activation state. 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. More... | |
| 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) More... | |
| 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 void | applyDisplayState (const DisplayState &state) |
| Applies a display state. More... | |
Static Public Member Functions | |
| static ccHObject * | New (CV_CLASS_ENUM objectType, const char *name=nullptr) |
| Static factory. More... | |
| static ccHObject * | New (const QString &pluginId, const QString &classId, const char *name=nullptr) |
| Static factory (version to be used by external plugin factories) More... | |
| static Eigen::Vector3d | ComputeMinBound (const std::vector< Eigen::Vector3d > &points) |
| Compute min bound of a list points. More... | |
| static Eigen::Vector3d | ComputeMaxBound (const std::vector< Eigen::Vector3d > &points) |
| Compute max bound of a list points. More... | |
| static Eigen::Vector3d | ComputeCenter (const std::vector< Eigen::Vector3d > &points) |
| Computer center of a list of points. More... | |
| static void | ResizeAndPaintUniformColor (std::vector< Eigen::Vector3d > &colors, std::size_t size, const Eigen::Vector3d &color) |
| Resizes the colors vector and paints a uniform color. More... | |
| static void | TransformPoints (const Eigen::Matrix4d &transformation, std::vector< Eigen::Vector3d > &points) |
| Transforms all points with the transformation matrix. More... | |
| static void | TransformNormals (const Eigen::Matrix4d &transformation, std::vector< Eigen::Vector3d > &normals) |
| Transforms the normals with the transformation matrix. More... | |
| static void | TransformCovariances (const Eigen::Matrix4d &transformation, std::vector< Eigen::Matrix3d > &covariances) |
| Transforms all covariance matrices with the transformation. More... | |
| static void | TranslatePoints (const Eigen::Vector3d &translation, std::vector< Eigen::Vector3d > &points, bool relative) |
| Apply translation to the geometry coordinates. More... | |
| static void | ScalePoints (const double scale, std::vector< Eigen::Vector3d > &points, const Eigen::Vector3d ¢er) |
Scale the coordinates of all points by the scaling factor scale. More... | |
| static void | RotatePoints (const Eigen::Matrix3d &R, std::vector< Eigen::Vector3d > &points, const Eigen::Vector3d ¢er) |
Rotate all points with the rotation matrix R. More... | |
| static void | RotateNormals (const Eigen::Matrix3d &R, std::vector< Eigen::Vector3d > &normals) |
Rotate all normals with the rotation matrix R. More... | |
| static void | RotateCovariances (const Eigen::Matrix3d &R, std::vector< Eigen::Matrix3d > &covariances) |
Rotate all covariance matrices with the rotation matrix R. More... | |
| static Eigen::Matrix3d | GetRotationMatrixFromXYZ (const Eigen::Vector3d &rotation) |
| Get Rotation Matrix from XYZ RotationType. More... | |
| static Eigen::Matrix3d | GetRotationMatrixFromYZX (const Eigen::Vector3d &rotation) |
| Get Rotation Matrix from YZX RotationType. More... | |
| static Eigen::Matrix3d | GetRotationMatrixFromZXY (const Eigen::Vector3d &rotation) |
| Get Rotation Matrix from ZXY RotationType. More... | |
| static Eigen::Matrix3d | GetRotationMatrixFromXZY (const Eigen::Vector3d &rotation) |
| Get Rotation Matrix from XZY RotationType. More... | |
| static Eigen::Matrix3d | GetRotationMatrixFromZYX (const Eigen::Vector3d &rotation) |
| Get Rotation Matrix from ZYX RotationType. More... | |
| static Eigen::Matrix3d | GetRotationMatrixFromYXZ (const Eigen::Vector3d &rotation) |
| Get Rotation Matrix from YXZ RotationType. More... | |
| static Eigen::Matrix3d | GetRotationMatrixFromAxisAngle (const Eigen::Vector3d &rotation) |
| Get Rotation Matrix from AxisAngle RotationType. More... | |
| static Eigen::Matrix3d | GetRotationMatrixFromQuaternion (const Eigen::Vector4d &rotation) |
| Get Rotation Matrix from Quaternion. More... | |
| static Eigen::Matrix3d | GetRotationMatrixFromEulerAngle (const Eigen::Vector3d &rotation) |
| Get Rotation Matrix from Euler angle. More... | |
Static Public Member Functions inherited from ccObject | |
| static unsigned | GetCurrentDBVersion () |
| Returns current database version. More... | |
| static void | SetUniqueIDGenerator (ccUniqueIDGenerator::Shared generator) |
| Sets the unique ID generator. More... | |
| static ccUniqueIDGenerator::Shared | GetUniqueIDGenerator () |
| Returns the unique ID generator. More... | |
| static unsigned | GetNextUniqueID () |
| Returns a new unassigned unique ID. More... | |
| static unsigned | GetLastUniqueID () |
| Returns last assigned unique ID. More... | |
| static CV_CLASS_ENUM | ReadClassIDFromFile (QFile &in, short dataVersion) |
| Helper: reads out class ID from a binary stream. More... | |
Static Public Member Functions inherited from ccSerializableObject | |
| static bool | WriteError () |
| Sends a custom error message (write error) and returns 'false'. More... | |
| static bool | ReadError () |
| Sends a custom error message (read error) and returns 'false'. More... | |
| static bool | MemoryError () |
| Sends a custom error message (not enough memory) and returns 'false'. More... | |
| static bool | CorruptError () |
| Sends a custom error message (corrupted file) and returns 'false'. More... | |
Protected Member Functions | |
| virtual void | setParent (ccHObject *anObject) |
| Sets parent object. More... | |
| virtual void | drawMeOnly (CC_DRAW_CONTEXT &context) |
| Draws the entity only (not its children) More... | |
| virtual void | applyGLTransformation (const ccGLMatrix &trans) |
| Applies a GL transformation to the entity. More... | |
| virtual bool | toFile_MeOnly (QFile &out, short dataVersion) const |
| Save own object data. More... | |
| virtual bool | fromFile_MeOnly (QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap) |
| Loads own object data. More... | |
| virtual short | minimumFileVersion_MeOnly () const |
| virtual void | drawNameIn3D () |
| Draws the entity name in 3D. More... | |
| virtual void | onDeletionOf (const ccHObject *obj) |
| This method is called when another object is deleted. More... | |
| virtual void | onUpdateOf (ccHObject *obj) |
| This method is called when another object (geometry) is updated. More... | |
Protected Member Functions inherited from ccObject | |
| virtual bool | getFlagState (CV_OBJECT_FLAG flag) const |
| Returns flag state. More... | |
| virtual void | setFlagState (CV_OBJECT_FLAG flag, bool state) |
| Sets flag state. More... | |
| bool | toFile (QFile &out, short dataVersion) const override |
| Saves data to binary stream. More... | |
| short | minimumFileVersion () const override |
| Returns the minimum file version required to save this instance. More... | |
| bool | fromFile (QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap) override |
| Reimplemented from ccSerializableObject::fromFile. More... | |
Protected Attributes | |
| ccHObject * | m_parent |
| Parent. More... | |
| Container | m_children |
| Children. More... | |
| SelectionBehavior | m_selectionBehavior |
| Selection behavior. More... | |
| std::map< ccHObject *, int > | m_dependencies |
| Dependencies map. More... | |
| ccGLMatrix | m_glTransHistory |
| Cumulative GL transformation. More... | |
| bool | m_isDeleting |
| Flag to safely handle dependencies when the object is being deleted. More... | |
Protected Attributes inherited from ccObject | |
| QString | m_name |
| Object name. More... | |
| QString | m_baseName |
| QString | m_filePath |
| bool | m_removeFlag |
| unsigned | m_flags |
| Object flags. More... | |
| QVariantMap | m_metaData |
| Associated meta-data. More... | |
Protected Attributes inherited from ccDrawableObject | |
| bool | m_fixedId |
| bool | m_modelRedraw |
| bool | m_forceRedraw |
| float | m_opacity |
| bool | m_visible |
| Specifies whether the object is visible or not. More... | |
| bool | m_selected |
| Specifies whether the object is selected or not. More... | |
| bool | m_lockedVisibility |
| Specifies whether the visibility can be changed by user or not. More... | |
| bool | m_colorsDisplayed |
| Specifies whether colors should be displayed. More... | |
| bool | m_normalsDisplayed |
| Specifies whether normals should be displayed. More... | |
| bool | m_sfDisplayed |
| Specifies whether scalar field should be displayed. More... | |
| ecvColor::Rgb | m_tempColor |
| Temporary (unique) color. More... | |
| bool | m_colorIsOverridden |
| Temporary (unique) color activation state. More... | |
| 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. More... | |
| CCVector3d | m_nameIn3DPos |
| Last 2D position of the '3D' name. More... | |
| ccClipPlaneSet | m_clipPlanes |
| Active clipping planes (used for display only) More... | |
| std::vector< DisplayState::Shared > | m_displayStateStack |
| The stack of pushed display states. More... | |
Hierarchical CLOUDVIEWER Object.
Definition at line 25 of file ecvHObject.h.
| using ccHObject::Container = std::vector<ccHObject*> |
Standard instances container (for children, etc.)
Definition at line 337 of file ecvHObject.h.
| using ccHObject::GlobalBoundingBox = cloudViewer::BoundingBoxTpl<double> |
Global (non-shifted) bounding-box.
Definition at line 436 of file ecvHObject.h.
| using ccHObject::Shared = QSharedPointer<ccHObject> |
Shared pointer.
Definition at line 340 of file ecvHObject.h.
| using ccHObject::SharedContainer = std::vector<Shared> |
Shared instances container (for children, etc.)
Definition at line 343 of file ecvHObject.h.
Dependency flags.
| Enumerator | |
|---|---|
| DP_NONE | no dependency |
| DP_NOTIFY_OTHER_ON_DELETE | notify 'other' when deleted (will call ccHObject::onDeletionOf) |
| DP_NOTIFY_OTHER_ON_UPDATE | notify 'other' when its geometry is modified (will call ccHObject::onUpdateOf) |
| DP_DELETE_OTHER | delete 'other' before deleting itself |
| DP_PARENT_OF_OTHER | same as DP_DELETE_OTHER + declares itself as parent of 'other' |
Definition at line 257 of file ecvHObject.h.
Behavior when selected.
| Enumerator | |
|---|---|
| SELECTION_AA_BBOX | |
| SELECTION_FIT_BBOX | |
| SELECTION_IGNORED | |
Definition at line 605 of file ecvHObject.h.
| ccHObject::ccHObject | ( | QString | name = QString() | ) |
Default constructor.
| name | object name (optional) |
Referenced by ccGeoObject::generateInterior(), ccGeoObject::generateLower(), and ccGeoObject::generateUpper().
| ccHObject::ccHObject | ( | const ccHObject & | object | ) |
Copy constructor.
|
overridevirtual |
Default destructor.
|
virtual |
Adds a child.
\param child child instance
\param dependencyFlags dependency flags
\param insertIndex insertion index (if <0, child is simply appended
to the children list) Referenced by ccPointPairRegistrationDlg::addAlignedPoint(), ecvAnnotationsTool::addAssociatedEntity(), ecvFilterTool::addAssociatedEntity(), ecvMeasurementTool::addAssociatedEntity(), ccDBRoot::addElement(), ccGraphicalTransformationTool::addEntity(), ccMeasurementRecorder::addFittingPoint(), ccCompass::addGeoObject(), ccMeasurementRecorder::addMeasurementPoint(), ccPointPairRegistrationDlg::addReferencePoint(), ccGraphicalSegmentationTool::applySegmentation(), FacetsClassifier::ByOrientation(), ccTracePolylineTool::ccTracePolylineTool(), ExtractSIFT::compute(), GeneralFilters::compute(), MLSSmoothingUpsampling::compute(), ProjectionFilter::compute(), StatisticalOutliersRemover::compute(), CorrespondenceMatching::compute(), TemplateAlignment::compute(), DONSegmentation::compute(), EuclideanClusterSegmentation::compute(), MinimumCutSegmentation::compute(), RegionGrowingSegmentation::compute(), SACSegmentation::compute(), ConvexConcaveHullReconstruction::compute(), GreedyTriangulation::compute(), MarchingCubeReconstruction::compute(), NurbsCurveFitting::compute(), NurbsSurfaceReconstruction::compute(), PoissonReconstruction::compute(), qVoxFallProcess::Compute(), qSRA::computeCloud2ProfileRadialDist(), contourPoly(), contourPoly2(), DistanceMapGenerationTool::ConvertConicalMapToMesh(), DistanceMapGenerationTool::ConvertProfileToMesh(), ConvertToGroup(), ccCompass::convertToPointCloud(), ccEntityAction::ConvexHull(), qFacets::createFacets(), ccCropTool::Crop(), ccCompass::distributeSelection(), qCSF::doAction(), qPoissonRecon::doAction(), qCanupoPlugin::doClassifyAction(), ccGraphicalSegmentationTool::doExportSegmentationPolyline(), q3DMASCPlugin::doTrainAction(), ccDBRoot::dropMimeData(), ccCompass::estimateStrain(), ccRasterizeTool::exportContourLines(), ccPointPropertiesDlg::exportCurrentLabel(), StereogramDialog::exportCurrentSelection(), ccCommandLineParser::exportEntity(), qFacets::exportFacets(), ccVolumeCalcTool::exportGridAsCloud(), ccGraphicalTransformationTool::exportNewEntities(), GrainsAsEllipsoids::exportResultsAsCloud(), ecvFilterTool::exportSlice(), ccPointListPickingDlg::exportToNewPolyline(), ccContourExtractor::ExtractConcaveHull2D(), ccContourExtractor::ExtractFlatContour(), CC_ITEM_TREE::findOrCreateContainer(), ccTraceTool::finishCurrentTrace(), G3Point::G3PointAction::fit(), ccCompass::fitPlaneToGeoObject(), FromFbxMesh(), ccRasterizeTool::generateCloud(), ccRasterizeTool::generateContours(), ccGeoObject::generateInterior(), ccGeoObject::generateLower(), ccRasterizeTool::generateMesh(), ccGeoObject::generateUpper(), G3Point::G3PointAction::getBorders(), GetConeProfile(), ccCompass::getInsertPoint(), MainWindow::getSelectedEntityBbox(), ccCommandLineParser::importFile(), ccCompass::importFoliations(), ccCompassImport::importFoliations(), ccCompass::importLineations(), ccCompassImport::importLineations(), STEPFilter::importStepFile(), ProfileLoader::Load(), IcmFilter::LoadCalibratedImages(), CSVMatrixFilter::loadFile(), PhotoScanFilter::loadFile(), PcdFilter::loadFile(), IcmFilter::loadFile(), PovFilter::loadFile(), SalomeHydroFilter::loadFile(), SinusxFilter::loadFile(), SoiFilter::loadFile(), SimpleBinFilter::loadFile(), DRCFilter::loadFile(), E57Filter::loadFile(), FBXFilter::loadFile(), LASFWFFilter::loadFile(), LasIOFilter::loadFile(), LASFilter::loadFile(), RDBFilter::loadFile(), LoadImage(), qSRA::loadProfile(), LoadScan(), main(), NodeStructureToTree(), ccTracePolylineTool::onItemPicked(), MainWindow::onItemPicked(), ccTraceTool::pickupTrace(), ccFitPlaneTool::pointPicked(), ccLineationTool::pointPicked(), ccNoteTool::pointPicked(), ccPinchNodeTool::pointPicked(), ccThicknessTool::pointPicked(), ccTraceTool::pointPicked(), ccTracePolylineTool::polylineOverSampling(), CommandDelaunayTri::process(), CommandRasterize::process(), CommandVolume25D::process(), FacetsClassifier::ProcessFamiliy(), ccPointListPickingDlg::processPickedPoint(), cloudViewer::geometry::pybind_geometry_classes(), ccEntityAction::RansacSegmentation(), cloudViewer::io::ReadTriangleMeshFromGLTF(), ccCompass::recalculateFitPlanes(), qCanupo2DViewDialog::resetBoundary(), ccCommandLineParser::saveClouds(), ccCommandLineParser::saveMeshes(), ccMeasurementRecorder::setPlane(), ecvPoissonReconDlg::start(), DistanceMapGenerationDlg::toggleOverlayGrid(), Cloth::toMesh(), qCanupo2DViewDialog::trainClassifier(), ccCompass::tryLoading(), GrainsAsEllipsoids::updateMeshAndLineSet(), and ccPointPairRegistrationDlg::zoomGlobalOnRegistrationEntities().
| void ccHObject::addDependency | ( | ccHObject * | otherObject, |
| int | flags, | ||
| bool | additive = true |
||
| ) |
Adds a new dependence (additive or not)
| otherObject | other object |
| flags | dependency flags (see DEPENDENCY_FLAGS) |
| additive | whether we should 'add' the flag(s) if there's already a dependence with the other object or not |
Referenced by ccDBRoot::dropMimeData(), and MainWindow::putObjectBackIntoDBTree().
|
protectedvirtual |
Applies a GL transformation to the entity.
this = rotMat*(this-rotCenter)+(rotCenter+trans)
| trans | a ccGLMatrix structure |
Reimplemented in ccSensor, ccPolyline, ccPointCloud, ccMesh, ccGenericPrimitive, ccFacet, and ccCircle.
| void ccHObject::applyGLTransformation_recursive | ( | const ccGLMatrix * | trans = nullptr | ) |
Applies the active OpenGL transformation to the entity (recursive)
The input ccGLMatrix should be left to 0, unless you want to apply a pre-transformation.
| trans | a ccGLMatrix structure (reference to) |
Referenced by MainWindow::addToDB(), ccGraphicalTransformationTool::apply(), ccPointPairRegistrationDlg::apply(), CorrespondenceMatching::applyTransformation(), TemplateAlignment::applyTransformation(), qVoxFallProcess::Compute(), ccCropTool::Crop(), define_ccObject(), JsonRPCPlugin::execute(), qFacets::exportFacets(), ccCompass::importFoliations(), ccCompassImport::importFoliations(), CSVMatrixFilter::loadFile(), PDMSFilter::loadFile(), FBXFilter::loadFile(), LoadScan(), BasePclModule::performAction(), CommandMatchBBCenters::process(), CommandMatchBestFitPlane::process(), CommandICP::process(), ccPointPairRegistrationDlg::transformAlignedEntity(), and ccPlaneEditDlg::updatePlane().
|
static |
Computer center of a list of points.
|
static |
Compute max bound of a list points.
|
static |
Compute min bound of a list points.
| void ccHObject::detachAllChildren | ( | ) |
Removes a specific child.
Referenced by ccGraphicalTransformationTool::clear(), define_ccObject(), PhotoScanFilter::loadFile(), PovFilter::loadFile(), and ccCompass::tryLoading().
| void ccHObject::detachChild | ( | ccHObject * | child | ) |
Detaches a specific child.
This method does not delete the child. Removes any dependency between the flag and this object
Referenced by ccGraphicalTransformationTool::addEntity(), define_ccObject(), ccCommandLineParser::exportEntity(), ccTraceTool::finishCurrentTrace(), ccCommandLineParser::importFile(), ccTraceTool::pickupTrace(), CommandExtractVertices::process(), ReadCloud(), and ccPointListPickingDlg::removeLastEntry().
|
overridevirtual |
Draws entity and its children.
Implements ccDrawableObject.
Reimplemented in GrainsAsEllipsoids, ccMouseCircle, ccMouseCircle, and ecvOrientedBBox.
Referenced by GrainsAsEllipsoids::draw(), and ccPointPairRegistrationDlg::updateSphereMarks().
|
virtual |
Draws the entity (and its children) bounding-box.
Reimplemented in ccPolyline.
Referenced by ccPolyline::drawBB().
|
inlineprotectedvirtual |
Draws the entity only (not its children)
Reimplemented in ccSymbolCloud, ccTrace, ccSNECloud, ccPointPair, cloudViewer::geometry::LineSet, cloudViewer::geometry::Image, ccPolyline, ccPointCloud, ccPlane, ccOctreeProxy, ccMeshGroup, ccMesh, ccKdTree, ccImage, ccGenericMesh, ccGBLSensor, ccFacet, ccCoordinateSystem, ccClipBox, ccCameraSensor, cc2DViewportLabel, and cc2DLabel.
Definition at line 655 of file ecvHObject.h.
|
protectedvirtual |
Draws the entity name in 3D.
Names is displayed at the center of the bounding box by default.
Reimplemented in ccSphere.
| unsigned ccHObject::filterChildren | ( | Container & | filteredChildren, |
| bool | recursive = false, |
||
| CV_CLASS_ENUM | filter = CV_TYPES::OBJECT, |
||
| bool | strict = false |
||
| ) | const |
Collects the children corresponding to a certain pattern.
| filteredChildren | result container |
| recursive | specifies if the search should be recursive |
| filter | pattern for children selection |
| strict | whether the search is strict on the type (i.e 'isA') or not (i.e. 'isKindOf') |
Referenced by MainWindow::addToDB(), ccGraphicalSegmentationTool::applySegmentation(), FacetsClassifier::ByOrientation(), Classify3DMASCDialog::Classify3DMASCDialog(), DistanceMapGenerationDlg::clearOverlaySymbols(), DistanceMapGenerationDlg::clearView(), ccCompass::convertToPointCloud(), ccDBRoot::data(), ccCompass::distributeSelection(), qPCV::doAction(), ccGraphicalSegmentationTool::doActionUseExistingPolyline(), ccCompass::estimateP21(), ccCompass::estimateStrain(), ccCompass::estimateStructureNormals(), JsonRPCPlugin::execute(), StereogramDialog::exportCurrentSelection(), ccDBRoot::exportImages(), ccCompass::exportToSVG(), BasePclModule::getAllEntitiesOfType(), GetDefaultContainer(), qFacets::getFacetsInCurrentSelection(), ccPointListPickingDlg::getPickedPoints(), ccCommandLineParser::importFile(), StereogramWidget::init(), ccPointListPickingDlg::linkWithCloud(), PovFilter::loadFile(), ccTracePolylineTool::polylineOverSampling(), CommandRANSAC::process(), qCanupoClassifDialog::qCanupoClassifDialog(), qCanupoTrainingDialog::qCanupoTrainingDialog(), qM3C2Dialog::qM3C2Dialog(), ReadCloud(), ccCompass::recalculateFitPlanes(), CorrespondenceMatchingDialog::refreshCloudComboBox(), TemplateAlignmentDialog::refreshCloudComboBox(), MinimumCutSegmentationDlg::refreshLabelComboBox(), GeneralFiltersDlg::refreshPolylineComboBox(), ccColorScaleEditorDialog::saveCurrentScale(), ccCompassExport::saveSVG(), PovFilter::saveToFile(), E57Filter::saveToFile(), ccDBRoot::selectChildrenByTypeAndName(), Classify3DMASCDialog::setCloudRoles(), ccDBRoot::showContextMenu(), DistanceMapGenerationDlg::toggleOverlayGrid(), and StereogramDialog::updateFacetsFilter().
| ccHObject* ccHObject::find | ( | unsigned | uniqueID | ) |
Finds an entity in this object hierarchy.
| uniqueID | child unique ID |
Referenced by ccLineationTool::cancel(), ccTraceTool::cancel(), ccCompass::cleanupBeforeToolChange(), define_ccObject(), ccDBRoot::dropMimeData(), StereogramDialog::exportCurrentSelection(), ccDBRoot::find(), ccTraceTool::finishCurrentTrace(), ccCompass::fitPlaneToGeoObject(), MinimumCutSegmentationDlg::get2DLabelFromCombo(), GetCloudFromCombo(), qCanupoTools::GetCloudFromCombo(), CorrespondenceMatchingDialog::getCloudFromCombo(), TemplateAlignmentDialog::getCloudFromCombo(), ccCompass::getInsertPoint(), GetMeshFromCombo(), ccGeoObject::getRegion(), ccThicknessTool::onNewSelection(), ccTopologyTool::onNewSelection(), ccLineationTool::pointPicked(), ccThicknessTool::pointPicked(), ccTraceTool::pointPicked(), cloudViewer::ModelViewerWidget::SelectObject(), ccThicknessTool::toolDisactivated(), ccCompass::tryLoading(), ccTraceTool::undo(), and StereogramDialog::updateFacetsFilter().
| unsigned ccHObject::findMaxUniqueID_recursive | ( | ) | const |
Returns the max 'unique ID' of this entity and its siblings.
|
overridevirtual |
Loads data from binary stream.
| in | input file (already opened) |
| dataVersion | file version (for version-specific deserialization) |
| flags | deserialization flags (see ccSerializableObject::DeserializationFlags) |
| oldToNewIDMap | map to link old IDs with new IDs |
Note: When implementing, use dataVersion checks to handle differentversions:
Reimplemented from ccSerializableObject.
|
protectedvirtual |
Loads own object data.
Called by 'fromFile' (recursive scheme) To be overloaded (but still called ;) by subclass.
| in | input file |
| dataVersion | file version |
| flags | deserialization flags (see ccSerializableObject::DeserializationFlags) |
| oldToNewIDMap | map to link old IDs with new IDs |
Reimplemented in GrainsAsEllipsoids, ccTorus, ccSubMesh, ccSphere, ccSensor, ccQuadric, ccPolyline, ccPointCloud, ccPlane, ccMeshGroup, ccMesh, ccMaterialSet, ccIndexedTransformationBuffer, ccImage, ccGenericPrimitive, ccGenericPointCloud, ccGenericMesh, ccGBLSensor, ccFacet, ccExtru, ccDish, ccDisc, ccCoordinateSystem, ccCone, ccCircle, ccCameraSensor, ccBox, ccArray< Type, N, ComponentType >, ccArray< CompressedNormType, 1, CompressedNormType >, ccArray< TexCoords2D, 2, float >, ccArray< ecvColor::Rgba, 4, ColorCompType >, ccArray< CCVector3, 3, PointCoordinateType >, ccArray< ecvColor::Rgb, 3, ColorCompType >, NormsIndexesTableType, cc2DViewportObject, cc2DViewportLabel, and cc2DLabel.
| bool ccHObject::fromFileNoChildren | ( | QFile & | in, |
| short | dataVersion, | ||
| int | flags, | ||
| LoadedIDMap & | oldToNewIDMap | ||
| ) |
Custom version of ccSerializableObject::fromFile.
This is used to load only the object's part of a stream (and not its children)
| in | input file (already opened) |
| dataVersion | file version |
| flags | deserialization flags (see ccSerializableObject::DeserializationFlags) |
| oldToNewIDMap | map to link old IDs with new IDs |
| bool ccHObject::getAbsoluteGLTransformation | ( | ccGLMatrix & | trans | ) | const |
Returns the absolute transformation (i.e. the actual displayed GL transforamtion) of an entity
| [out] | trans | absolute transformation |
|
virtual |
Returns an axis-aligned bounding box of the geometry.
Reimplemented in PyGeometry< GeometryBase >, cloudViewer::geometry::VoxelGrid, cloudViewer::geometry::Octree, cloudViewer::geometry::LineSet, ccPolyline, ccPointCloud, ecvOrientedBBox, cloudViewer::geometry::ecvMeshBase, ccMesh, ccFacet, ccBBox, and cloudViewer::visualization::PointCloudPicker.
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
virtual |
Returns the bounding-box of this entity and it's children.
| withGLFeatures | whether to take into account display-only elements (if any) |
| onlyEnabledChildren | only consider the 'enabled' children |
Referenced by ecvAnnotationsTool::addAssociatedEntity(), MainWindow::addToDB(), ccDBRoot::alignCameraWithEntity(), ccTopologyRelation::constructGraphic(), ccPropertiesTreeDelegate::fillWithHObject(), ccPropertiesTreeDelegate::fillWithViewProperties(), ccApplyTransformationDlg::initFromDipAndDipDir(), IcmFilter::loadFile(), and ecvAnnotationsTool::reset().
|
inlinevirtual |
Returns the center of the geometry coordinates.
Reimplemented in PyGeometry< GeometryBase >, cloudViewer::geometry::VoxelGrid, cloudViewer::geometry::Octree, cloudViewer::geometry::LineSet, ccPolyline, ccPointCloud, ecvOrientedBBox, cloudViewer::geometry::ecvMeshBase, ccMesh, ccFacet, ccBBox, and cloudViewer::visualization::PointCloudPicker.
Definition at line 150 of file ecvHObject.h.
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
inline |
Returns the ith child.
| childPos | child position |
Definition at line 325 of file ecvHObject.h.
Referenced by ecvFilterTool::addAssociatedEntity(), ecvMeasurementTool::addAssociatedEntity(), ccGraphicalTransformationTool::addEntity(), ccGraphicalSegmentationTool::addEntity(), ccCompass::addGeoObject(), MainWindow::addToDB(), ccPointPairRegistrationDlg::align(), ccGraphicalTransformationTool::apply(), ccGraphicalTransformationTool::cancel(), ccPointPairRegistrationDlg::clear(), ccComparisonDlg::computeDistances(), ccEntityAction::computeNormals(), JsonRPCPlugin::execute(), ccDBRoot::expandElement(), ccDBRoot::expandOrCollapseHoveredBranch(), ccGraphicalTransformationTool::exportNewEntities(), ecvFilterTool::exportSlice(), CC_ITEM_TREE::findItemInHierarchy(), ccCompass::fitPlaneToGeoObject(), ccDBRoot::gatherRecursiveInformation(), ccGeoObject::generateInterior(), ccGeoObject::generateLower(), ccGeoObject::generateUpper(), ccCompass::getInsertPoint(), ccCompass::hideAllPointClouds(), ccPointPairRegistrationDlg::label2DMove(), DistanceMapGenerationDlg::labelFontSizeChanged(), PhotoScanFilter::loadFile(), E57Filter::loadFile(), LASFilter::loadFile(), ccCompass::onSave(), DistanceMapGenerationDlg::overlayGridColorChanged(), DistanceMapGenerationDlg::overlaySymbolsColorChanged(), DistanceMapGenerationDlg::overlaySymbolsSizeChanged(), ccTraceTool::pickupTrace(), ccNoteTool::pointPicked(), cloudViewer::geometry::pybind_geometry_classes(), ccCompass::recalculateFitPlanes(), ccCompass::recurseLabels(), ccCompass::recurseNormals(), ccCompass::recurseStipple(), ccPointPairRegistrationDlg::removeAlignedPoint(), ccPointPairRegistrationDlg::removeRefPoint(), ccPointPairRegistrationDlg::reset(), ccCompassExport::saveCSV(), PcdFilter::saveToFile(), SalomeHydroFilter::saveToFile(), SinusxFilter::saveToFile(), MascaretFilter::saveToFile(), E57Filter::saveToFile(), FBXFilter::saveToFile(), ccCompassExport::saveXML(), ccEntityAction::setColor(), ccPointPairRegistrationDlg::showAlignedEntities(), ccPointPairRegistrationDlg::showReferenceEntities(), ccDBRoot::sortSelectedEntitiesChildren(), ecvFilterTool::stop(), ccEntityAction::toggleProperty(), ccCompass::tryLoading(), ccDBRoot::unloadAll(), ccPointPairRegistrationDlg::updateAlignedMarkers(), ccPointPairRegistrationDlg::updateAllMarkers(), ccPointPairRegistrationDlg::updateRefMarkers(), and ccCompass::writeToXML().
| unsigned int ccHObject::getChildCountRecursive | ( | ) | const |
Returns the total number of children under this object recursively.
Referenced by ccDBRoot::data(), and define_ccObject().
| int ccHObject::getChildIndex | ( | const ccHObject * | aChild | ) | const |
Returns child index.
Referenced by ccDBRoot::addElement(), define_ccObject(), and ccDBRoot::dropMimeData().
|
inline |
Returns the number of children.
Definition at line 312 of file ecvHObject.h.
Referenced by ecvFilterTool::addAssociatedEntity(), ecvMeasurementTool::addAssociatedEntity(), ccDBRoot::addElement(), ccGraphicalTransformationTool::addEntity(), ccGraphicalSegmentationTool::addEntity(), MainWindow::addToDB(), ccPointPairRegistrationDlg::align(), ccGraphicalTransformationTool::apply(), ccGraphicalTransformationTool::cancel(), ccPointListPickingDlg::cancelAndExit(), ccPointPairRegistrationDlg::clear(), CorrespondenceMatching::compute(), DONSegmentation::compute(), EuclideanClusterSegmentation::compute(), SACSegmentation::compute(), NurbsCurveFitting::compute(), ccComparisonDlg::computeDistances(), ccEntityAction::computeNormals(), qFacets::createFacets(), ecvMeasurementTool::createMeasurementTool(), ccDBRoot::data(), define_ccObject(), ccDBRoot::deleteSelectedEntities(), q3DMASCPlugin::doTrainAction(), ccDBRoot::dropMimeData(), ccDBRoot::expandElement(), ccDBRoot::expandOrCollapseHoveredBranch(), StereogramDialog::exportCurrentSelection(), qFacets::exportFacets(), qFacets::extractFacets(), ccPropertiesTreeDelegate::fillWithHObject(), ccPropertiesTreeDelegate::fillWithViewProperties(), CC_ITEM_TREE::findItemInHierarchy(), ccCompass::fitPlaneToGeoObject(), ccDBRoot::gatherRecursiveInformation(), ccGeoObject::generateInterior(), ccGeoObject::generateLower(), ccGeoObject::generateUpper(), ecvAnnotationsTool::getNumberOfAssociatedEntity(), ecvFilterTool::getNumberOfAssociatedEntity(), ecvMeasurementTool::getNumberOfAssociatedEntity(), ccGraphicalTransformationTool::getNumberOfValidEntities(), MainWindow::getSelectedEntityBbox(), ccCompass::hideAllPointClouds(), ccPointPairRegistrationDlg::label2DMove(), DistanceMapGenerationDlg::labelFontSizeChanged(), PhotoScanFilter::loadFile(), E57Filter::loadFile(), FBXFilter::loadFile(), LASFilter::loadFile(), q3DMASCPlugin::onNewSelection(), DistanceMapGenerationDlg::overlayGridColorChanged(), DistanceMapGenerationDlg::overlaySymbolsColorChanged(), DistanceMapGenerationDlg::overlaySymbolsSizeChanged(), ccTraceTool::pickupTrace(), ccPointListPickingDlg::processPickedPoint(), ccDBRoot::removeElement(), ccDBRoot::removeElements(), ecvAnnotationsTool::reset(), ccPointPairRegistrationDlg::reset(), ccDBRoot::rowCount(), PcdFilter::saveToFile(), SalomeHydroFilter::saveToFile(), SinusxFilter::saveToFile(), MascaretFilter::saveToFile(), E57Filter::saveToFile(), FBXFilter::saveToFile(), ccCompassExport::saveXML(), ccDBRoot::selectChildrenByTypeAndName(), ccEntityAction::setColor(), ccPropertiesTreeDelegate::setEditorData(), ccPointPairRegistrationDlg::showAlignedEntities(), ccDBRoot::showContextMenu(), ccPointPairRegistrationDlg::showReferenceEntities(), ccDBRoot::sortSelectedEntitiesChildren(), ccGraphicalTransformationTool::start(), ecvMeasurementTool::start(), ccEntityAction::toggleProperty(), ccCompass::tryLoading(), ccDBRoot::unloadAll(), ccPointPairRegistrationDlg::unstackAligned(), ccPointPairRegistrationDlg::unstackRef(), ccPointPairRegistrationDlg::updateAllMarkers(), ccCompass::writeToXML(), and ccPointPairRegistrationDlg::zoomGlobalOnRegistrationEntities().
|
inlineoverridevirtual |
Returns class ID.
Implements ccObject.
Reimplemented in ccTrace, PyObjectBase< ccHObject >, cloudViewer::geometry::VoxelGrid, cloudViewer::geometry::RGBDImage, cloudViewer::geometry::Octree, cloudViewer::geometry::LineSet, cloudViewer::geometry::Image, cloudViewer::geometry::HalfEdgeTriangleMesh, ccTorus, cloudViewer::geometry::TetraMesh, ccSubMesh, ccSphere, ccSensor, ccQuadric, ccPolyline, ccPointCloud, ccPlane, ecvOrientedBBox, ccOctreeProxy, ccMeshGroup, cloudViewer::geometry::ecvMeshBase, ccMesh, ccMaterialSet, ccKdTree, ccIndexedTransformationBuffer, ccImage, ccArray< CompressedNormType, 1, CompressedNormType >, ccArray< TexCoords2D, 2, float >, ccArray< ecvColor::Rgba, 4, ColorCompType >, ccArray< CCVector3, 3, PointCoordinateType >, and ccArray< ecvColor::Rgb, 3, ColorCompType >.
Definition at line 232 of file ecvHObject.h.
References CV_TYPES::HIERARCHY_OBJECT.
Referenced by cloudViewer::visualization::rendering::FilamentScene::AddGeometry(), ccDBRoot::data(), cloudViewer::visualization::rendering::GeometryBuffersBuilder::GetBuilder(), cloudViewer::geometry::pybind_geometry_classes(), and ccDBRoot::sortSelectedEntitiesChildren().
| int ccHObject::getDependencyFlagsWith | ( | const ccHObject * | otherObject | ) |
Returns the dependency flags with a given object.
| otherObject | other object |
Referenced by ccDBRoot::dropMimeData(), and MainWindow::removeObjectTemporarilyFromDBTree().
|
virtual |
Returns the bounding-box of this entity and it's children WHEN DISPLAYED.
Children's GL transformation is taken into account (if enabled).
| relative | whether the bounding-box is relative (i.e. in the entity's local coordinate system) or absolute (in which case the parent's GL transformation will be taken into account) |
| display | if not null, this method will return the bounding-box of this entity (and its children) in the specified 3D view (i.e. potentially not visible) |
Referenced by define_ccObject(), ecvAnnotationsTool::getSelectedEntityBbox(), ecvFilterTool::getSelectedEntityBbox(), MainWindow::getSelectedEntityBbox(), DistanceMapGenerationDlg::update(), ccRasterizeTool::updateGridAndDisplay(), ccVolumeCalcTool::updateGridAndDisplay(), qCanupo2DViewDialog::updateZoom(), ccPointPairRegistrationDlg::zoomGlobalOnRegistrationEntities(), and MainWindow::zoomOnEntities().
| ENTITY_TYPE ccHObject::getEntityType | ( | ) | const |
|
inline |
Shortcut: returns first child.
Definition at line 396 of file ecvHObject.h.
Referenced by ecvMeasurementTool::createMeasurementTool(), define_ccObject(), ecvAnnotationsTool::exportAnnotationToSF(), ecvAnnotationsTool::start(), ecvFilterTool::start(), and ecvMeasurementTool::start().
|
virtual |
Returns the global bounding-box of this entity and it's children.
| withGLFeatures | whether to take into account display-only elements (if any) |
| onlyEnabledChildren | only consider the 'enabled' children |
|
inlinevirtual |
Returns the transformation 'history' matrix.
Reimplemented in ccMesh, and ccGenericPrimitive.
Definition at line 631 of file ecvHObject.h.
Referenced by define_ccObject(), SaveScan(), and ccPropertiesTreeDelegate::setEditorData().
|
virtual |
Returns the icon associated to this entity.
ccDBRoot will call this method: if an invalid icon is returned the default icon for that type will be used instead.
Referenced by ccDBRoot::data().
| int ccHObject::getIndex | ( | ) | const |
Returns index relatively to its parent or -1 if no parent.
Referenced by define_ccObject(), and ccDBRoot::parent().
|
inline |
Shortcut: returns last child.
Definition at line 400 of file ecvHObject.h.
Referenced by define_ccObject().
|
inlinevirtual |
Reimplemented in PyGeometry< GeometryBase >, cloudViewer::geometry::RGBDImage, cloudViewer::geometry::Image, and cloudViewer::visualization::SelectionPolygon.
Definition at line 148 of file ecvHObject.h.
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
inlinevirtual |
Returns max bounds for geometry coordinates.
Reimplemented in PyGeometry< GeometryBase >, cloudViewer::geometry::VoxelGrid, cloudViewer::geometry::Octree, cloudViewer::geometry::LineSet, ccPolyline, ccPointCloud, ecvOrientedBBox, cloudViewer::geometry::ecvMeshBase, ccMesh, ccFacet, ccBBox, and cloudViewer::visualization::PointCloudPicker.
Definition at line 147 of file ecvHObject.h.
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
inlinevirtual |
Reimplemented in PyGeometry< GeometryBase >, cloudViewer::geometry::RGBDImage, cloudViewer::geometry::Image, and cloudViewer::visualization::SelectionPolygon.
Definition at line 145 of file ecvHObject.h.
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
inlinevirtual |
Returns min bounds for geometry coordinates.
Reimplemented in PyGeometry< GeometryBase >, cloudViewer::geometry::VoxelGrid, cloudViewer::geometry::Octree, cloudViewer::geometry::LineSet, ccPolyline, ccPointCloud, ecvOrientedBBox, cloudViewer::geometry::ecvMeshBase, ccMesh, ccFacet, ccBBox, and cloudViewer::visualization::PointCloudPicker.
Definition at line 144 of file ecvHObject.h.
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
virtual |
Reimplemented in PyGeometry< GeometryBase >, cloudViewer::geometry::VoxelGrid, cloudViewer::geometry::Octree, cloudViewer::geometry::LineSet, ccPolyline, ccPointCloud, ecvOrientedBBox, cloudViewer::geometry::ecvMeshBase, ccMesh, ccFacet, ccBBox, and cloudViewer::visualization::PointCloudPicker.
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
virtual |
Returns the entity's own bounding-box.
Children bboxes are ignored.
| withGLFeatures | whether to take into account display-only elements (if any) |
Reimplemented in GrainsAsEllipsoids, cloudViewer::geometry::VoxelGrid, cloudViewer::geometry::RGBDImage, cloudViewer::geometry::Octree, cloudViewer::geometry::LineSet, cloudViewer::geometry::Image, ccSubMesh, ccPolyline, ecvOrientedBBox, ccOctreeProxy, cloudViewer::geometry::ecvMeshBase, ccMesh, ccKdTree, ccIndexedTransformationBuffer, ccGenericPointCloud, ccGBLSensor, ccClipBox, ccCameraSensor, and ccBBox.
Referenced by ccLibAlgorithms::ApplyScaleMatchingAlgorithm(), ccComparisonDlg::ccComparisonDlg(), CommandCrossSection::process(), CommandMatchBBCenters::process(), and cloudViewer::geometry::pybind_geometry_classes().
|
virtual |
Returns best-fit bounding-box (if available)
| [out] | trans | associated transformation (so that the bounding-box can be displayed in the right position!) |
Reimplemented in ccQuadric, ccPlane, ccGBLSensor, ccDisc, and ccCameraSensor.
Referenced by ccPropertiesTreeDelegate::fillWithHObject().
|
virtual |
Returns the entity's own global bounding-box (with global/non-shifted coordinates - if relevant) Children bounding-boxes are ignored. May differ from the (local) bounding-box if the entity is shifted
| withGLFeatures | whether to take into account display-only elements (if any) |
Reimplemented in ccShiftedObject.
|
virtual |
Returns the entity's own global bounding-box (with global/non-shifted coordinates - if relevant) Children bounding-boxes are ignored. By default this method returns the local bounding-box! But it may differ from the (local) bounding-box if the entity is shifted.
| [out] | minCorner | min global bounding-box corner |
| [out] | maxCorner | max global bounding-box corner |
Reimplemented in ccShiftedObject.
|
inline |
Returns parent object.
Definition at line 245 of file ecvHObject.h.
Referenced by ccDBRoot::addElement(), ccGraphicalTransformationTool::addEntity(), ccGraphicalTransformationTool::apply(), ccGraphicalSegmentationTool::applySegmentation(), FacetsClassifier::ByOrientation(), CanDetachCloud(), qCanupoProcess::Classify(), qFacets::classifyFacetsByAngle(), ccPointListPickingDlg::clearLastLabel(), ccEntityAction::clearProperty(), ExtractSIFT::compute(), GeneralFilters::compute(), MLSSmoothingUpsampling::compute(), ProjectionFilter::compute(), StatisticalOutliersRemover::compute(), CorrespondenceMatching::compute(), TemplateAlignment::compute(), DONSegmentation::compute(), EuclideanClusterSegmentation::compute(), MinimumCutSegmentation::compute(), RegionGrowingSegmentation::compute(), SACSegmentation::compute(), ConvexConcaveHullReconstruction::compute(), GreedyTriangulation::compute(), MarchingCubeReconstruction::compute(), NurbsCurveFitting::compute(), NurbsSurfaceReconstruction::compute(), PoissonReconstruction::compute(), qM3C2Process::Compute(), ccEntityAction::ConvexHull(), define_ccObject(), ccDBRoot::deleteSelectedEntities(), qPCV::doAction(), ccDBRoot::dropMimeData(), ccVolumeCalcTool::exportGridAsCloud(), ccGraphicalTransformationTool::exportNewEntities(), ecvFilterTool::exportSlice(), ccTraceTool::finishCurrentTrace(), ccDBRoot::flags(), ccRasterizeTool::generateCloud(), ccRasterizeTool::generateMesh(), G3Point::G3PointAction::getBorders(), ccGeoObject::getGeoObjectParent(), ccGeoObject::getGeoObjectRegion(), qM3C2Tools::GuessBestParams(), ccCommandLineParser::importFile(), ccDBRoot::parent(), ccTraceTool::pickupTrace(), CommandClearNormals::process(), CommandExtractVertices::process(), FacetsClassifier::ProcessFamiliy(), cloudViewer::geometry::pybind_geometry_classes(), ccEntityAction::RansacSegmentation(), ReadCloud(), ccCompass::recalculateFitPlanes(), MainWindow::removeFromDB(), MainWindow::removeObjectTemporarilyFromDBTree(), RemoveUnusedLabelsAndUpdateTheOthers(), ccColorScaleEditorDialog::saveCurrentScale(), ccEntityAction::setColor(), SetEnabled_recursive(), ecvPoissonReconDlg::start(), ccCompass::tryLoading(), and GrainsAsEllipsoids::updateMeshAndLineSet().
|
static |
Get Rotation Matrix from AxisAngle RotationType.
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
static |
Get Rotation Matrix from Euler angle.
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
static |
Get Rotation Matrix from Quaternion.
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
static |
Get Rotation Matrix from XYZ RotationType.
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
static |
Get Rotation Matrix from XZY RotationType.
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
static |
Get Rotation Matrix from YXZ RotationType.
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
static |
Get Rotation Matrix from YZX RotationType.
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
static |
Get Rotation Matrix from ZXY RotationType.
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
static |
Get Rotation Matrix from ZYX RotationType.
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
inlinevirtual |
Returns selection behavior.
Definition at line 621 of file ecvHObject.h.
Referenced by ccPropertiesTreeDelegate::fillWithHObject().
| void ccHObject::getTypeID_recursive | ( | std::vector< hideInfo > & | hdInfos, |
| bool | relative | ||
| ) |
| void ccHObject::getTypeID_recursive | ( | std::vector< removeInfo > & | rmInfos, |
| bool | relative | ||
| ) |
|
inlinevirtual |
Returns object unqiue ID used for display.
Reimplemented in ccPolyline, ccPointCloud, and ccMesh.
Definition at line 626 of file ecvHObject.h.
References ccObject::getUniqueID().
|
inline |
Definition at line 225 of file ecvHObject.h.
References ccObject::getUniqueID().
Referenced by ccLibAlgorithms::ApplyScaleMatchingAlgorithm(), ccPropertiesTreeDelegate::fillModel(), ccPropertiesTreeDelegate::fillWithViewProperties(), BasePclModule::performAction(), ccTracePolylineTool::resetPoly3D(), ccGraphicalSegmentationTool::resetSegmentation(), MainWindow::resetSelectedBBox(), ccTracePolylineTool::resetTip(), ccDBRoot::setData(), ccPropertiesTreeDelegate::setEditorData(), and ccPointPairRegistrationDlg::updateSphereMarks().
| void ccHObject::hideBB | ( | CC_DRAW_CONTEXT | context | ) |
Referenced by ccDBRoot::setData().
| void ccHObject::hideObject_recursive | ( | bool | recursive | ) |
| bool ccHObject::isAncestorOf | ( | const ccHObject * | anObject | ) | const |
Returns true if the current object is an ancestor of the specified one.
Referenced by ccGraphicalTransformationTool::addEntity(), AddToRemoveList(), ccGraphicalTransformationTool::apply(), ccGraphicalSegmentationTool::applySegmentation(), define_ccObject(), ccDBRoot::deleteSelectedEntities(), ccCommandLineParser::exportEntity(), ccPropertiesTreeDelegate::fillWithMesh(), RemoveUnusedLabelsAndUpdateTheOthers(), and ccEntityAction::setColor().
|
virtual |
Returns whether the object and all its ancestors are enabled.
|
virtual |
Returns whether the object is actually displayed (visible) or not.
Referenced by ccThicknessTool::onNewSelection().
|
inlinevirtual |
Reimplemented in PyGeometry< GeometryBase >, cloudViewer::geometry::VoxelGrid, cloudViewer::geometry::RGBDImage, cloudViewer::geometry::Octree, cloudViewer::geometry::LineSet, cloudViewer::geometry::Image, ccPolyline, ccPointCloud, ecvOrientedBBox, cloudViewer::geometry::ecvMeshBase, ccMesh, ccFacet, and ccBBox.
Definition at line 142 of file ecvHObject.h.
Referenced by cloudViewer::visualization::rendering::FilamentScene::AddGeometry(), and cloudViewer::geometry::pybind_geometry_classes().
|
inline |
Returns whether the instance is a group.
Definition at line 237 of file ecvHObject.h.
References ccObject::getClassID(), and CV_TYPES::HIERARCHY_OBJECT.
Referenced by ecvFilterTool::addAssociatedEntity(), ecvMeasurementTool::addAssociatedEntity(), define_ccObject(), and cloudViewer::geometry::pybind_geometry_classes().
|
overridevirtual |
Returns whether object is serializable of not.
Reimplemented from ccSerializableObject.
Reimplemented in cloudViewer::geometry::VoxelGrid, cloudViewer::geometry::RGBDImage, cloudViewer::geometry::Octree, cloudViewer::geometry::LineSet, cloudViewer::geometry::Image, cloudViewer::geometry::HalfEdgeTriangleMesh, cloudViewer::geometry::TetraMesh, ccSubMesh, ccSensor, ccPolyline, ecvOrientedBBox, ccMeshGroup, cloudViewer::geometry::ecvMeshBase, ccMesh, ccMaterialSet, ccIndexedTransformationBuffer, ccImage, ccArray< CompressedNormType, 1, CompressedNormType >, ccArray< TexCoords2D, 2, float >, ccArray< ecvColor::Rgba, 4, ColorCompType >, ccArray< CCVector3, 3, PointCoordinateType >, and ccArray< ecvColor::Rgb, 3, ColorCompType >.
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
inlinevirtual |
Returns whether object is shareable or not.
If object is father dependent and 'shared', it won't be deleted but 'released' instead.
Reimplemented in ccMaterialSet, ccArray< Type, N, ComponentType >, ccArray< CompressedNormType, 1, CompressedNormType >, ccArray< TexCoords2D, 2, float >, ccArray< ecvColor::Rgba, 4, ColorCompType >, ccArray< CCVector3, 3, PointCoordinateType >, and ccArray< ecvColor::Rgb, 3, ColorCompType >.
Definition at line 602 of file ecvHObject.h.
|
overridevirtual |
Returns the minimum file version required to save this instance.
To be overridden by subclasses to indicate their minimum required version. This enables the system to determine:
Implements ccSerializableObject.
|
protectedvirtual |
Returns the minimum file version required to save this instance's own data To be overloaded (but still called ;) by subclass. Used internally by minimumFileVersion() to compute the overall minimum.
Reimplemented in GrainsAsEllipsoids, ccTorus, ccSubMesh, ccSphere, ccSensor, ccQuadric, ccPolyline, ccPointCloud, ccPlane, ccMeshGroup, ccMesh, ccMaterialSet, ccIndexedTransformationBuffer, ccImage, ccGenericPrimitive, ccGenericPointCloud, ccGenericMesh, ccGBLSensor, ccFacet, ccExtru, ccDish, ccDisc, ccCoordinateSystem, ccCone, ccCircle, ccCameraSensor, ccBox, ccArray< Type, N, ComponentType >, ccArray< CompressedNormType, 1, CompressedNormType >, ccArray< TexCoords2D, 2, float >, ccArray< ecvColor::Rgba, 4, ColorCompType >, ccArray< CCVector3, 3, PointCoordinateType >, ccArray< ecvColor::Rgb, 3, ColorCompType >, cc2DViewportObject, cc2DViewportLabel, and cc2DLabel.
Referenced by GrainsAsEllipsoids::minimumFileVersion_MeOnly().
|
static |
Static factory (version to be used by external plugin factories)
Two strings are used as keys, one for the plugin name and one for the class name. Those strings will typically be saved as metadata of a custom object
|
static |
Static factory.
Warning: objects depending on other structures (such as meshes or polylines that should be linked with point clouds playing the role of vertices) are returned 'naked'.
| objectType | object type |
| name | object name (optional) |
|
virtual |
Notifies all dependent entities that the geometry of this entity has changed
Reimplemented in ccPointCloud.
Referenced by define_ccObject(), and MainWindow::putObjectBackIntoDBTree().
|
protectedvirtual |
This method is called when another object is deleted.
For internal use.
Reimplemented in cloudViewer::geometry::Image, ccMesh, ccImage, and cc2DLabel.
|
inlineprotectedvirtual |
This method is called when another object (geometry) is updated.
For internal use.
Reimplemented in ccSubMesh, and ccMesh.
Definition at line 706 of file ecvHObject.h.
|
overridevirtual |
Pops the last pushed display state (overridden)
Reimplemented from ccDrawableObject.
Referenced by ccGraphicalSegmentationTool::addEntity(), and ccGraphicalSegmentationTool::prepareEntityForRemoval().
|
overridevirtual |
Pushes the current display state (overridden)
Reimplemented from ccDrawableObject.
Referenced by ccGraphicalSegmentationTool::addEntity().
|
virtual |
Redraws associated display.
Referenced by ccCloudLayersHelper::apply(), ccColorFromScalarDlg::ccColorFromScalarDlg(), CC_ITEM_TREE::createPointLabel2D(), ccMeasurementDevice::createScalarFieldForCloud(), ccMeasurementDevice::deleteScalarFieldFromCloud(), GrainsAsEllipsoids::drawLines(), GrainsAsEllipsoids::drawPoints(), GrainsAsEllipsoids::drawSurfaces(), ccDBRoot::editLabelScalarValue(), TreeIso::Final_seg(), TreeIso::Init_seg(), TreeIso::Intermediate_seg(), ccCloudLayersHelper::mouseMove(), ccCloudLayersHelper::moveItem(), ccColorFromScalarDlg::onApply(), ccPlaneEditDlg::saveParamsAndAccept(), GrainsAsEllipsoids::setGLPointSize(), GrainsAsEllipsoids::setOnlyOne(), GrainsAsEllipsoids::setTransparency(), ccCloudLayersHelper::setVisible(), GrainsAsEllipsoids::showAll(), GrainsAsEllipsoids::showOnlyOne(), ccCloudLayersHelper::~ccCloudLayersHelper(), and ccColorFromScalarDlg::~ccColorFromScalarDlg().
|
inlinevirtual |
Definition at line 536 of file ecvHObject.h.
|
inlinevirtual |
Definition at line 539 of file ecvHObject.h.
| void ccHObject::removeAllChildren | ( | ) |
Removes all children.
Referenced by FacetsClassifier::ByOrientation(), ccPointPairRegistrationDlg::clear(), cloudViewer::geometry::pybind_geometry_classes(), ecvAnnotationsTool::releaseAssociatedEntities(), ecvFilterTool::releaseAssociatedEntities(), and ecvMeasurementTool::releaseAssociatedEntities().
| void ccHObject::removeChild | ( | ccHObject * | child | ) |
Referenced by ccGraphicalSegmentationTool::applySegmentation(), FacetsClassifier::ByOrientation(), GrainsAsEllipsoids::clearGeneratedObjects(), DistanceMapGenerationTool::ConvertProfileToMesh(), FromFbxMesh(), cloudViewer::geometry::pybind_geometry_classes(), RemoveUnusedLabelsAndUpdateTheOthers(), ccDBRoot::unloadAll(), ccPointPairRegistrationDlg::updateAlignedMarkers(), and ccPointPairRegistrationDlg::updateRefMarkers().
| void ccHObject::removeChild | ( | int | pos | ) |
Removes a specific child given its index.
| void ccHObject::removeDependencyFlag | ( | ccHObject * | otherObject, |
| DEPENDENCY_FLAGS | flag | ||
| ) |
Removes a given dependency flag.
| otherObject | other object |
| flag | dependency flag to remove (see DEPENDENCY_FLAGS) |
Referenced by ccDBRoot::dropMimeData().
| void ccHObject::removeDependencyWith | ( | ccHObject * | otherObject | ) |
Removes any dependency flags with a given object.
| otherObject | other object |
Referenced by FacetsClassifier::ByOrientation(), ccPointListPickingDlg::clearLastLabel(), MainWindow::removeFromDB(), and MainWindow::removeObjectTemporarilyFromDBTree().
| void ccHObject::removeFromRenderScreen | ( | bool | recursive = true | ) |
Referenced by MainWindow::removeFromDB().
|
inlinevirtual |
Resets the transformation 'history' matrix.
Definition at line 639 of file ecvHObject.h.
Referenced by define_ccObject().
|
inlinevirtual |
Definition at line 550 of file ecvHObject.h.
Referenced by FBXFilter::loadFile(), and LoadScan().
|
static |
Resizes the colors vector and paints a uniform color.
| colors | An array of eigen vectors specifies colors in RGB. |
| size | The resultant size of the colors array. |
| color | The final color in which the colors will be painted. |
|
inlinevirtual |
Definition at line 190 of file ecvHObject.h.
|
inlinevirtual |
Apply rotation to the geometry coordinates and normals. Given a rotation matrix
, and center
, a given point
is transformed according to
.
| R | A 3x3 rotation matrix |
| center | Rotation center that is used for the rotation. |
Reimplemented in cloudViewer::geometry::VoxelGrid, cloudViewer::geometry::Octree, cloudViewer::geometry::LineSet, ccPolyline, ccPointCloud, ecvOrientedBBox, cloudViewer::geometry::ecvMeshBase, ccMesh, ccFacet, ccBBox, and cloudViewer::visualization::PointCloudPicker.
Definition at line 186 of file ecvHObject.h.
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
static |
Rotate all covariance matrices with the rotation matrix R.
| R | A 3x3 rotation matrix |
| covariances | A list of covariance matrices to be transformed. |
|
static |
Rotate all normals with the rotation matrix R.
| R | A 3x3 rotation matrix |
| normals | A list of normals to be transformed. |
|
static |
Rotate all points with the rotation matrix R.
| R | A 3x3 rotation matrix defines the axis of rotation and the norm the angle around this axis. |
| points | A list of points to be transformed. |
| center | Rotation center that is used for the rotation. |
|
inlinevirtual |
|
inlinevirtual |
Apply scaling to the geometry coordinates. Given a scaling factor
, and center
, a given point
is transformed according to
.
| scale | The scale parameter that is multiplied to the points/vertices of the geometry. |
| center | Scale center that is used to resize the geometry. |
Reimplemented in ecvOrientedBBox, cloudViewer::geometry::VoxelGrid, cloudViewer::geometry::Octree, cloudViewer::geometry::LineSet, ccPolyline, ccPointCloud, cloudViewer::geometry::ecvMeshBase, ccMesh, ccFacet, ccBBox, and cloudViewer::visualization::PointCloudPicker.
Definition at line 176 of file ecvHObject.h.
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
static |
Scale the coordinates of all points by the scaling factor scale.
| scale | If true, the scale is applied relative to the center of the geometry. Otherwise, the scale is directly applied to the geometry, i.e. relative to the origin. |
| points | A list of points to be transformed. |
| center | If true, then the scale is applied to the centered geometry. |
| void ccHObject::setForceRedrawRecursive | ( | bool | redraw = false | ) |
Referenced by ccDBRoot::setData(), and ccDBRoot::toggleSelectedEntitiesProperty().
|
inlinevirtual |
Sets the transformation 'history' matrix (handle with care!)
Definition at line 635 of file ecvHObject.h.
Referenced by define_ccObject().
| void ccHObject::setHideShowType | ( | CC_DRAW_CONTEXT & | context | ) |
| void ccHObject::setLineWidthRecursive | ( | PointCoordinateType | width | ) |
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
inlineprotectedvirtual |
Sets parent object.
Definition at line 652 of file ecvHObject.h.
| void ccHObject::setPointSizeRecursive | ( | int | pSize | ) |
Referenced by cloudViewer::geometry::pybind_geometry_classes().
| void ccHObject::setRedrawFlagRecursive | ( | bool | redraw = false | ) |
Referenced by ccPointPairRegistrationDlg::align(), ccGraphicalTransformationTool::apply(), masc::Classifier::classify(), ccEntityAction::interpolateColors(), ccEntityAction::interpolateSFs(), MainWindow::onItemPicked(), BasePclModule::performAction(), MainWindow::refreshObject(), MainWindow::refreshObjects(), MainWindow::refreshSelected(), ccPointPairRegistrationDlg::reset(), ccEntityAction::rgbToGreyScale(), ccEntityAction::setColor(), ccDBRoot::setData(), ccEntityAction::sfConvertToRandomRGB(), and ccComparisonDlg::updateDisplay().
| void ccHObject::setRemoveType | ( | CC_DRAW_CONTEXT & | context | ) |
|
inlinevirtual |
Definition at line 541 of file ecvHObject.h.
|
inlinevirtual |
Sets selection behavior (when displayed)
WARNING: SELECTION_FIT_BBOX relies on the 'ccDrawableObject::getFitBB' method (which is not supported by all entities).
Definition at line 616 of file ecvHObject.h.
Referenced by ccTraceTool::finishCurrentTrace(), and ccFitPlaneTool::pointPicked().
| void ccHObject::showBB | ( | CC_DRAW_CONTEXT | context | ) |
Referenced by ccDBRoot::setData().
| void ccHObject::swapChildren | ( | unsigned | firstChildIndex, |
| unsigned | secondChildIndex | ||
| ) |
Swaps two children.
Referenced by define_ccObject(), and ccDBRoot::sortSelectedEntitiesChildren().
|
overridevirtual |
Saves data to binary stream.
| out | output file (already opened) |
| dataVersion | target file version (for forward/backward compatibility) |
Reimplemented from ccSerializableObject.
|
protectedvirtual |
Save own object data.
Called by 'toFile' (recursive scheme) To be overloaded (but still called ;) by subclass.
| out | output file |
| dataVersion | target file version for compatibility control |
Reimplemented in GrainsAsEllipsoids, ccTorus, ccSubMesh, ccSphere, ccSensor, ccQuadric, ccPolyline, ccPointCloud, ccPlane, ccMeshGroup, ccMesh, ccMaterialSet, ccIndexedTransformationBuffer, ccImage, ccGenericPrimitive, ccGenericPointCloud, ccGenericMesh, ccGBLSensor, ccFacet, ccExtru, ccDish, ccDisc, ccCoordinateSystem, ccCone, ccCircle, ccCameraSensor, ccBox, ccArray< Type, N, ComponentType >, ccArray< CompressedNormType, 1, CompressedNormType >, ccArray< TexCoords2D, 2, float >, ccArray< ecvColor::Rgba, 4, ColorCompType >, ccArray< CCVector3, 3, PointCoordinateType >, ccArray< ecvColor::Rgb, 3, ColorCompType >, cc2DViewportObject, cc2DViewportLabel, and cc2DLabel.
|
inlinevirtual |
Definition at line 543 of file ecvHObject.h.
|
inlinevirtual |
Definition at line 547 of file ecvHObject.h.
Referenced by ccEntityAction::toggleProperty().
|
inlinevirtual |
Definition at line 553 of file ecvHObject.h.
Referenced by ccEntityAction::toggleProperty().
|
inlinevirtual |
Definition at line 556 of file ecvHObject.h.
Referenced by ccEntityAction::toggleProperty().
|
inlinevirtual |
Definition at line 559 of file ecvHObject.h.
Referenced by ccEntityAction::toggleProperty().
|
inlinevirtual |
Definition at line 545 of file ecvHObject.h.
Referenced by ccEntityAction::toggleProperty().
Transfer a given child to another parent.
| void ccHObject::transferChildren | ( | ccHObject & | newParent, |
| bool | forceFatherDependent = false |
||
| ) |
Transfer all children to another parent.
Referenced by ccFitPlane::Fit(), and ccCompass::mergeGeoObjects().
|
inlinevirtual |
Apply transformation (4x4 matrix) to the geometry coordinates.
Reimplemented in PyGeometry< GeometryBase >, cloudViewer::geometry::VoxelGrid, cloudViewer::geometry::Octree, cloudViewer::geometry::LineSet, ccPolyline, ecvOrientedBBox, cloudViewer::geometry::ecvMeshBase, ccMesh, ccFacet, ccBBox, cloudViewer::visualization::PointCloudPicker, and ccPointCloud.
Definition at line 157 of file ecvHObject.h.
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
static |
Transforms all covariance matrices with the transformation.
| transformation | 4x4 matrix for transformation. |
| covariances | A list of covariance matrices to be transformed. |
|
static |
Transforms the normals with the transformation matrix.
| transformation | 4x4 matrix for transformation. |
| normals | A list of normals to be transformed. |
|
static |
Transforms all points with the transformation matrix.
| transformation | 4x4 matrix for transformation. |
| points | A list of points to be transformed. |
|
inlinevirtual |
Apply translation to the geometry coordinates.
| translation | A 3D vector to transform the geometry. |
| relative | If true, the translation is directly applied to the geometry. Otherwise, the geometry center is moved to the translation. |
Reimplemented in cloudViewer::geometry::VoxelGrid, cloudViewer::geometry::Octree, cloudViewer::geometry::LineSet, ccPolyline, ccPointCloud, ecvOrientedBBox, cloudViewer::geometry::ecvMeshBase, ccMesh, ccFacet, ccBBox, and cloudViewer::visualization::PointCloudPicker.
Definition at line 165 of file ecvHObject.h.
Referenced by cloudViewer::geometry::pybind_geometry_classes().
|
static |
Apply translation to the geometry coordinates.
| translation | A 3D vector to transform the geometry. |
| points | A list of points to be transformed. |
| relative | If true, the translation is directly applied to the \points. Otherwise, the center of the \points is moved to the translation. |
| void ccHObject::updateNameIn3DRecursive | ( | ) |
|
protected |
|
protected |
Dependencies map.
First parameter: other object Second parameter: dependency flags (see DEPENDENCY_FLAGS)
Definition at line 721 of file ecvHObject.h.
|
protected |
Cumulative GL transformation.
History of all the applied transformations since the creation of the object as a single transformation.
Definition at line 727 of file ecvHObject.h.
|
protected |
Flag to safely handle dependencies when the object is being deleted.
Definition at line 730 of file ecvHObject.h.
|
protected |
Parent.
Definition at line 709 of file ecvHObject.h.
|
protected |
Selection behavior.
Definition at line 715 of file ecvHObject.h.