41 virtual void clearDrawings();
67 m_posBuffer = positions;
74 bool addPosition(
ccGLMatrix& trans,
double index);
89 bool getActiveAbsoluteCenter(
CCVector3& vec)
const;
100 m_rigidTransformation = mat;
106 return m_rigidTransformation;
112 return m_rigidTransformation;
116 void getIndexBounds(
double& minIndex,
double& maxIndex)
const;
137 virtual bool applyViewport();
144 bool toFile_MeOnly(QFile& out,
short dataVersion)
const override;
149 LoadedIDMap& oldToNewIDMap)
override;
constexpr unsigned char POINT_VISIBLE
float PointCoordinateType
Type of the coordinates of a (N-D) point.
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
Float version of ccGLMatrixTpl.
Hierarchical CLOUDVIEWER Object.
virtual short minimumFileVersion_MeOnly() const
virtual bool fromFile_MeOnly(QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap)
Loads own object data.
virtual bool toFile_MeOnly(QFile &out, short dataVersion) const
Save own object data.
virtual void applyGLTransformation(const ccGLMatrix &trans)
Applies a GL transformation to the entity.
Generic sensor interface.
ccIndexedTransformationBuffer * getPositions()
Returns associated positions.
virtual CC_SENSOR_TYPE getType() const
Returns the sensor type.
virtual bool isSerializable() const override
Returns whether object is serializable of not.
PointCoordinateType m_scale
Sensor graphic representation scale.
PointCoordinateType getGraphicScale() const
Returns the sensor graphic representation scale.
virtual unsigned char checkVisibility(const CCVector3 &P) const
Returns the "visibility type" of a point.
virtual ccGLMatrix & getRigidTransformation()
ccIndexedTransformationBuffer * m_posBuffer
Positions buffer (optional)
void setPositions(ccIndexedTransformationBuffer *positions)
Sets associated positions.
void setFrameColor(ecvColor::Rgb color)
ccGLMatrix m_rigidTransformation
Rigid transformation between this sensor and its associated positions.
double m_activeIndex
Active index (for displayed position, etc.)
ecvColor::Rgb m_color
Color of the sensor.
double getActiveIndex() const
Sets currently active index (displayed position, etc.)
virtual void setRigidTransformation(const ccGLMatrix &mat)
virtual CV_CLASS_ENUM getClassID() const override
Returns class ID.
void setActiveIndex(double index)
Sets currently active index (displayed position, etc.)
void setGraphicScale(PointCoordinateType scale)
Sets the sensor graphic representation scale.
const ecvColor::Rgb & getFrameColor() const
virtual const ccGLMatrix & getRigidTransformation() const
CC_SENSOR_TYPE
Sensor types.