|
| ccGenericPointCloud (QString name=QString(), unsigned uniqueID=ccUniqueIDGenerator::InvalidUniqueID) |
| Default constructor. More...
|
|
| ccGenericPointCloud (const ccGenericPointCloud &cloud) |
| Copy constructor.
|
|
| ~ccGenericPointCloud () override |
| Default destructor.
|
|
virtual ccGenericPointCloud * | clone (ccGenericPointCloud *destCloud=nullptr, bool ignoreChildren=false)=0 |
| Clones this entity. More...
|
|
virtual void | clear () |
| Clears the entity from all its points and features. More...
|
|
virtual ccOctree::Shared | computeOctree (CCCoreLib::GenericProgressCallback *progressCb=nullptr, bool autoAddChild=true) |
| Computes the cloud octree. More...
|
|
virtual ccOctree::Shared | getOctree () const |
| Returns the associated octree (if any)
|
|
virtual void | setOctree (ccOctree::Shared octree, bool autoAddChild=true) |
| Sets the associated octree.
|
|
virtual ccOctreeProxy * | getOctreeProxy () const |
| Returns the associated octree proxy (if any)
|
|
virtual void | deleteOctree () |
| Erases the octree.
|
|
virtual const ccColor::Rgb * | geScalarValueColor (ScalarType d) const =0 |
| Returns color corresponding to a given scalar value. More...
|
|
virtual const ccColor::Rgb * | getPointScalarValueColor (unsigned pointIndex) const =0 |
| Returns color corresponding to a given point associated scalar value. More...
|
|
virtual ScalarType | getPointDisplayedDistance (unsigned pointIndex) const =0 |
| Returns scalar value associated to a given point. More...
|
|
virtual const ccColor::Rgba & | getPointColor (unsigned pointIndex) const =0 |
| Returns color corresponding to a given point. More...
|
|
virtual const CompressedNormType & | getPointNormalIndex (unsigned pointIndex) const =0 |
| Returns compressed normal corresponding to a given point. More...
|
|
virtual const CCVector3 & | getPointNormal (unsigned pointIndex) const =0 |
| Returns normal corresponding to a given point. More...
|
|
virtual VisibilityTableType & | getTheVisibilityArray () |
| Returns associated visibility array.
|
|
virtual const VisibilityTableType & | getTheVisibilityArray () const |
| Returns associated visibility array (const version)
|
|
virtual CCCoreLib::ReferenceCloud * | getTheVisiblePoints (const VisibilityTableType *visTable=nullptr, bool silent=false) const |
| Returns a ReferenceCloud equivalent to the visibility array. More...
|
|
virtual bool | isVisibilityTableInstantiated () const |
| Returns whether the visibility array is allocated or not.
|
|
virtual bool | resetVisibilityArray () |
| Resets the associated visibility array. More...
|
|
virtual void | invertVisibilityArray () |
| Inverts the visibility array.
|
|
virtual void | unallocateVisibilityArray () |
| Erases the points visibility information.
|
|
ccBBox | getOwnBB (bool withGLFeatures=false) override |
| Returns the entity's own bounding-box (with local/shifted coordinates) More...
|
|
virtual void | refreshBB ()=0 |
| Forces bounding-box update.
|
|
virtual ccGenericPointCloud * | createNewCloudFromVisibilitySelection (bool removeSelectedPoints=false, VisibilityTableType *visTable=nullptr, bool silent=false)=0 |
| Creates a new point cloud with only the 'visible' points (as defined by the visibility array) More...
|
|
virtual void | applyRigidTransformation (const ccGLMatrix &trans)=0 |
| Applies a rigid transformation (rotation + translation)
|
|
virtual CCCoreLib::ReferenceCloud * | crop (const ccBBox &box, bool inside=true)=0 |
| Crops the cloud inside (or outside) a bounding box. More...
|
|
virtual void | scale (PointCoordinateType fx, PointCoordinateType fy, PointCoordinateType fz, CCVector3 center=CCVector3(0, 0, 0))=0 |
| Multiplies all coordinates by constant factors (one per dimension) More...
|
|
bool | isSerializable () const override |
| Returns whether object is serializable of not. More...
|
|
void | setPointSize (unsigned size=0) |
| Sets point size. More...
|
|
unsigned char | getPointSize () const |
| Returns current point size. More...
|
|
void | importParametersFrom (const ccGenericPointCloud *cloud) |
| Imports the parameters from another cloud. More...
|
|
bool | pointPicking (const CCVector2d &clickPos, const ccGLCameraParameters &camera, int &nearestPointIndex, double &nearestSquareDist, double pickWidth=2.0, double pickHeight=2.0, bool autoComputeOctree=false) |
| Point picking (brute force or octree-driven) More...
|
|
| ccShiftedObject (QString name=QString(), unsigned uniqueID=ccUniqueIDGenerator::InvalidUniqueID) |
| Default constructor. More...
|
|
| ccShiftedObject (const ccShiftedObject &s)=default |
| Copy constructor. More...
|
|
void | copyGlobalShiftAndScale (const ccShiftedObject &s) |
| Copies the Global Shift and Scale from another entity. More...
|
|
virtual void | setGlobalShift (double x, double y, double z) |
| Sets shift applied to original coordinates (information storage only) More...
|
|
virtual void | setGlobalShift (const CCVector3d &shift) |
| Sets shift applied to original coordinates (information storage only) More...
|
|
virtual const CCVector3d & | getGlobalShift () const |
| Returns the shift applied to original coordinates. More...
|
|
virtual void | setGlobalScale (double scale) |
| Sets the scale applied to original coordinates (information storage only) More...
|
|
virtual double | getGlobalScale () const |
| Returns the scale applied to original coordinates. More...
|
|
bool | isShifted () const |
| Returns whether the cloud is shifted or not.
|
|
template<typename T > |
CCVector3d | toGlobal3d (const Vector3Tpl< T > &Plocal) const |
| Returns the point back-projected into the original coordinates system.
|
|
template<typename T > |
CCVector3d | toLocal3d (const Vector3Tpl< T > &Pglobal) const |
| Returns the point projected into the local (shifted) coordinates system.
|
|
template<typename T > |
CCVector3 | toLocal3pc (const Vector3Tpl< T > &Pglobal) const |
| Returns the point projected into the local (shifted) coordinates system.
|
|
bool | getOwnGlobalBB (CCVector3d &minCorner, CCVector3d &maxCorner) override |
| Returns the entity's own global bounding-box (with global/non-shifted coordinates - if relevant) More...
|
|
GlobalBoundingBox | getOwnGlobalBB (bool withGLFeatures=false) override |
| Returns the entity's own global bounding-box (with global/non-shifted coordinates - if relevant) More...
|
|
| ccHObject (const QString &name=QString(), unsigned uniqueID=ccUniqueIDGenerator::InvalidUniqueID) |
| Default constructor. More...
|
|
| ccHObject (const ccHObject &object) |
| Copy constructor.
|
|
| ~ccHObject () override |
| Default destructor.
|
|
CC_CLASS_ENUM | getClassID () const override |
| Returns class ID. More...
|
|
bool | isGroup () const |
| Returns whether the instance is a group.
|
|
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) const |
| 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) const |
| Finds an entity in this object hierarchy. More...
|
|
unsigned | filterChildren (Container &filteredChildren, bool recursive=false, CC_CLASS_ENUM filter=CC_TYPES::OBJECT, bool strict=false, ccGenericGLDisplay *inDisplay=nullptr) 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 | removeChild (ccHObject *child) |
|
void | removeChild (int pos) |
| Removes a specific child given its index. More...
|
|
void | removeAllChildren () |
| Removes all children.
|
|
int | getChildIndex (const ccHObject *aChild) const |
| Returns child index.
|
|
void | swapChildren (unsigned firstChildIndex, unsigned secondChildIndex) |
| Swaps two children.
|
|
int | getIndex () const |
| Returns index relatively to its parent or -1 if no parent.
|
|
void | transferChild (ccHObject *child, ccHObject &newParent) |
| Transfer a given child to another parent.
|
|
void | transferChildren (ccHObject &newParent, bool forceFatherDependent=false) |
| Transfer all children to another parent.
|
|
ccHObject * | getFirstChild () const |
| Shortcut: returns first child.
|
|
ccHObject * | getLastChild () const |
| Shortcut: returns last child.
|
|
bool | isAncestorOf (const ccHObject *anObject) const |
| Returns true if the current object is an ancestor of the specified one.
|
|
virtual ccBBox | getOwnBB (bool withGLFeatures=false) |
| Returns the entity's own bounding-box (with local/shifted coordinates) More...
|
|
virtual ccBBox | getBB_recursive (bool withGLFeatures=false, bool onlyEnabledChildren=true) |
| Returns the local bounding-box of this entity and it's children. More...
|
|
virtual GlobalBoundingBox | getOwnGlobalBB (bool withGLFeatures=false) |
| Returns the entity's own global bounding-box (with global/non-shifted coordinates - if relevant) More...
|
|
virtual bool | getOwnGlobalBB (CCVector3d &minCorner, CCVector3d &maxCorner) |
| Returns the entity's own global bounding-box (with global/non-shifted coordinates - if relevant) More...
|
|
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, const ccGenericGLDisplay *display=nullptr) |
| 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 ccColor::Rgb &col) |
| Draws the entity (and its children) bounding-box. More...
|
|
void | draw (CC_DRAW_CONTEXT &context) override |
| Draws entity and its children. More...
|
|
bool | getAbsoluteGLTransformation (ccGLMatrix &trans) const |
| Returns the absolute transformation (i.e. the actual displayed GL transformation) of an entity. More...
|
|
virtual bool | isDisplayed () const |
| Returns whether the object is actually displayed (visible) or not.
|
|
virtual bool | isDisplayedIn (const ccGenericGLDisplay *display) const |
| Returns whether the object is actually displayed (visible) in a given display or not.
|
|
virtual bool | isBranchEnabled () const |
| Returns whether the object and all its ancestors are enabled.
|
|
| ccHObject_recursive_call1 (setSelected, bool, setSelected_recursive) ccHObject_recursive_call1(setDisplay |
|
ccGenericGLDisplay setDisplay_recursive | ccHObject_recursive_call1 (removeFromDisplay, ccGenericGLDisplay *, removeFromDisplay_recursive) ccHObject_recursive_call0(prepareDisplayForRefresh |
|
ccGenericGLDisplay setDisplay_recursive prepareDisplayForRefresh_recursive | ccHObject_recursive_call1 (refreshDisplay, bool, refreshDisplay_recursive) ccHObject_recursive_call0(resetGLTransformationHistory |
|
ccGenericGLDisplay setDisplay_recursive prepareDisplayForRefresh_recursive resetGLTransformationHistory_recursive | ccHObject_recursive_call0 (toggleActivation, toggleActivation_recursive) ccHObject_recursive_call0(toggleVisibility |
|
ccGenericGLDisplay setDisplay_recursive prepareDisplayForRefresh_recursive resetGLTransformationHistory_recursive toggleVisibility_recursive | ccHObject_recursive_call0 (toggleColors, toggleColors_recursive) ccHObject_recursive_call0(toggleNormals |
|
ccGenericGLDisplay setDisplay_recursive prepareDisplayForRefresh_recursive resetGLTransformationHistory_recursive toggleVisibility_recursive toggleNormals_recursive | ccHObject_recursive_call0 (toggleSF, toggleSF_recursive) ccHObject_recursive_call0(toggleShowName |
|
ccGenericGLDisplay setDisplay_recursive prepareDisplayForRefresh_recursive resetGLTransformationHistory_recursive toggleVisibility_recursive toggleNormals_recursive toggleShowName_recursive | ccHObject_recursive_call0 (toggleMaterials, toggleMaterials_recursive) inline virtual void transferDisplay(ccGenericGLDisplay *oldDisplay |
| Transfers the entity from one display to the other.
|
|
void | applyGLTransformation_recursive (const ccGLMatrix *trans=nullptr) |
| Applies the active OpenGL transformation to the entity (recursive) More...
|
|
virtual void | notifyGeometryUpdate () |
| Notifies all dependent entities that the geometry of this entity has changed.
|
|
bool | isSerializable () const override |
| Returns whether object is serializable of not. More...
|
|
bool | toFile (QFile &out) 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...
|
|
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.
|
|
virtual unsigned | getUniqueIDForDisplay () const |
| Returns object unique 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!)
|
|
virtual void | resetGLTransformationHistory () |
| Resets the transformation 'history' matrix.
|
|
bool | pushDisplayState () override |
| Pushes the current display state (overridden) More...
|
|
void | popDisplayState (bool apply=true) override |
| Pops the last pushed display state (overridden) More...
|
|
| ccObject (const QString &name=QString(), unsigned uniqueID=ccUniqueIDGenerator::InvalidUniqueID) |
| Default constructor. More...
|
|
| ccObject (const ccObject &object) |
| Copy constructor.
|
|
virtual CC_CLASS_ENUM | getClassID () const =0 |
| Returns class ID. More...
|
|
virtual QString | getName () const |
| Returns object name. More...
|
|
virtual void | setName (const QString &name) |
| Sets object name.
|
|
virtual unsigned | getUniqueID () const |
| Returns object unique ID.
|
|
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.
|
|
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 (CC_CLASS_ENUM type) const |
|
bool | isA (CC_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)
|
|
virtual | ~ccSerializableObject ()=default |
| Destructor.
|
|
virtual bool | isSerializable () const |
| Returns whether object is serializable of not. More...
|
|
virtual bool | toFile (QFile &out) const |
| Saves data to binary stream. More...
|
|
virtual bool | fromFile (QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap) |
| Loads data from binary stream. More...
|
|
| 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.
|
|