46 bool move2D(
int x,
int y,
int dx,
int dy,
int screenWidth,
int screenHeight)
90 inline void showBox(
bool state) { m_showBox = state; }
106 bool shrink =
false)
const;
float PointCoordinateType
Type of the coordinates of a (N-D) point.
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
void shift(const CCVector3 &v)
Shifts the current box.
void getInteractorIds(QStringList &removeViewIds)
void flagPointsInside(ccGenericPointCloud *cloud, ccGenericPointCloud::VisibilityTableType *visTable, bool shrink=false) const
const ccBBox & getBox() const
Returns the box extents.
bool addAssociatedEntity(ccHObject *associatedEntity)
Adds an associated entity.
void setClickedPoint(int x, int y, int screenWidth, int screenHeight, const ccGLMatrixd &viewMatrix)
Sets last clicked point (on screen)
void update()
Updates the associated entity clipping planes.
ccGLMatrixd m_viewMatrix
View matrix.
ccHObject m_entityContainer
Associated entities container.
ccClipBox(QString name=QString("Clipping box"))
Default constructor.
bool move2D(int x, int y, int dx, int dy, int screenWidth, int screenHeight) override
Called on mouse move (for 2D interactors)
PointCoordinateType computeArrowsScale()
Computes arrows display scale.
void showBox(bool state)
Whether to show the box or not.
void set(const ccBBox &extents, const ccGLMatrix &transformation)
Manually sets the box parameters.
CCVector3d m_lastOrientation
Last "orientation" vector (corresponding to last clicked point)
void boxModified(const ccBBox *box)
Signal sent each time the box is modified.
void releaseAssociatedEntities()
Releases all associated entities.
ccBBox getOwnBB(bool withGLFeatures=false) override
Returns the entity's own bounding-box.
ccBBox m_box
Clipping box.
void setBox(const ccBBox &box)
Sets the box extents.
Components m_activeComponent
Active component.
~ccClipBox() override
Destructor.
void releaseAllInterators()
void get(ccBBox &extents, ccGLMatrix &transformation)
Returns the box parameters.
void drawMeOnly(CC_DRAW_CONTEXT &context) override
Draws the entity only (not its children)
bool move3D(const CCVector3d &u) override
Called on mouse move (for 3D interactors)
void setActiveComponent(int id)
Sets currently active component.
void hideShowAllInterators(bool visibility)
CV_CLASS_ENUM getClassID() const override
Returns class ID.
const ccHObject & getContainer() const
Associated entity container.
Float version of ccGLMatrixTpl.
Double version of ccGLMatrixTpl.
A 3D cloud interface with associated features (color, normals, octree, etc.)
std::vector< unsigned char > VisibilityTableType
Array of "visibility" information for each point.
Hierarchical CLOUDVIEWER Object.
Interactor interface (entity that can be dragged or clicked in a 3D view)