67 m_posBuffer = positions;
100 m_rigidTransformation = mat;
106 return m_rigidTransformation;
112 return m_rigidTransformation;
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.
Generic sensor interface.
short minimumFileVersion_MeOnly() const override
bool fromFile_MeOnly(QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap) override
Loads own object data.
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.
ccSensor(QString name)
Default constructor.
bool addPosition(ccGLMatrix &trans, double index)
Adds a new position (shortcut)
bool getActiveAbsoluteCenter(CCVector3 &vec) const
Gets currently active absolute position.
virtual unsigned char checkVisibility(const CCVector3 &P) const
Returns the "visibility type" of a point.
bool toFile_MeOnly(QFile &out, short dataVersion) const override
Save own object data.
virtual ccGLMatrix & getRigidTransformation()
virtual void hideShowDrawings(CC_DRAW_CONTEXT &context)
ccIndexedTransformationBuffer * m_posBuffer
Positions buffer (optional)
void setPositions(ccIndexedTransformationBuffer *positions)
Sets associated positions.
void setFrameColor(ecvColor::Rgb color)
virtual void clearDrawings()
ccGLMatrix m_rigidTransformation
Rigid transformation between this sensor and its associated positions.
virtual void applyGLTransformation(const ccGLMatrix &trans) override
Applies a GL transformation to the entity.
double m_activeIndex
Active index (for displayed position, etc.)
bool getAbsoluteTransformation(ccIndexedTransformation &trans, double index) const
ccSensor(const ccSensor &sensor)
Copy constructor.
void getIndexBounds(double &minIndex, double &maxIndex) const
Gets index boundaries (shortcut)
bool getActiveAbsoluteTransformation(ccIndexedTransformation &trans) const
Gets currently active absolute transformation.
ecvColor::Rgb m_color
Color of the sensor.
double getActiveIndex() const
Sets currently active index (displayed position, etc.)
virtual bool applyViewport()
Apply sensor 'viewport' to a 3D view.
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.
bool getActiveAbsoluteRotation(ccGLMatrix &rotation) const
Gets currently active rotation matrix (without translation)
const ecvColor::Rgb & getFrameColor() const
virtual const ccGLMatrix & getRigidTransformation() const
QMultiMap< unsigned, unsigned > LoadedIDMap
Map of loaded unique IDs (old ID --> new ID)
CC_SENSOR_TYPE
Sensor types.