29 QString
name = QString(
"CoordinateSystem"));
37 QString
name = QString(
"CoordinateSystem"));
50 virtual QString
getTypeName()
const override {
return "CoordinateSystem"; }
56 void ShowAxisPlanes(
bool show);
60 void ShowAxisLines(
bool show);
69 return m_DisplayScale;
76 return m_transformation.getTranslationAsVec3D();
80 std::shared_ptr<ccPlane> getXYplane()
const;
82 std::shared_ptr<ccPlane> getYZplane()
const;
84 std::shared_ptr<ccPlane> getZXplane()
const;
92 static constexpr
float MIN_DISPLAY_SCALE_F = 0.001f;
96 static constexpr
float MIN_AXIS_WIDTH_F = 1.0f;
98 static constexpr
float MAX_AXIS_WIDTH_F = 16.0f;
105 bool toFile_MeOnly(QFile& out,
short dataVersion)
const override;
111 virtual bool buildUp()
override;
float PointCoordinateType
Type of the coordinates of a (N-D) point.
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
Coordinate System (primitive)
PointCoordinateType m_DisplayScale
CoordinateSystem options.
cloudViewer::geometry::LineSet m_axis
bool axisPlanesAreShown() const
PointCoordinateType m_width
CCVector3 getOrigin() const
virtual CV_CLASS_ENUM getClassID() const override
Returns class ID.
virtual QString getTypeName() const override
Returns type name (sphere, cylinder, etc.)
PointCoordinateType getDisplayScale() const
bool axisLinesAreShown() const
PointCoordinateType getAxisWidth() const
Float version of ccGLMatrixTpl.
Generic primitive interface.
virtual void clearDrawings()
virtual void hideShowDrawings(CC_DRAW_CONTEXT &context)
virtual ccGenericPrimitive * clone() const =0
Clones primitive.
bool toFile_MeOnly(QFile &out, short dataVersion) const override
Save own object data.
virtual bool buildUp()=0
Builds primitive.
bool fromFile_MeOnly(QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap) override
Loads own object data.
short minimumFileVersion_MeOnly() const override
void drawMeOnly(CC_DRAW_CONTEXT &context) override
Enables (OpenGL) stipple mask.
QMultiMap< unsigned, unsigned > LoadedIDMap
Map of loaded unique IDs (old ID --> new ID)
LineSet define a sets of lines in 3D. A typical application is to display the point cloud corresponde...