You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sofa/Component/StateContainer/src/sofa/component/statecontainer/MechanicalObject.h
+14-26Lines changed: 14 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -101,14 +101,20 @@ class MechanicalObject : public sofa::core::behavior::MechanicalState<DataTypes>
101
101
102
102
Data< bool > d_useTopology; ///< Shall this object rely on any active topology to initialize its size and positions
103
103
104
-
Data< bool > showObject; ///< Show objects. (default=false)
105
-
Data< float > showObjectScale; ///< Scale for object display. (default=0.1)
106
-
Data< bool > showIndices; ///< Show indices. (default=false)
107
-
Data< float > showIndicesScale; ///< Scale for indices display. (default=0.02)
108
-
Data< bool > showVectors; ///< Show velocity. (default=false)
109
-
Data< float > showVectorsScale; ///< Scale for vectors display. (default=0.0001)
110
-
Data< int > drawMode; ///< The way vectors will be drawn: - 0: Line - 1:Cylinder - 2: Arrow. The DOFS will be drawn: - 0: point - >1: sphere. (default=0)
111
-
Data< type::RGBAColor > d_color; ///< Color for object display. (default=[1 1 1 1])
: core::objectmodel::lifecycle::DeprecatedData(b, "v25.12", "v26.06", name, "The visualization features are now available in dedicated components VisualPointCloud and VisualVectorField") {}
108
+
};
109
+
110
+
DeprecatedVisualizationData showObject;
111
+
DeprecatedVisualizationData showObjectScale;
112
+
DeprecatedVisualizationData showIndices;
113
+
DeprecatedVisualizationData showIndicesScale;
114
+
DeprecatedVisualizationData showVectors;
115
+
DeprecatedVisualizationData showVectorsScale;
116
+
DeprecatedVisualizationData drawMode;
117
+
DeprecatedVisualizationData d_color;
112
118
113
119
voidinit() override;
114
120
voidreinit() override;
@@ -327,8 +333,6 @@ class MechanicalObject : public sofa::core::behavior::MechanicalState<DataTypes>
327
333
voidprintDOF(core::ConstVecId, std::ostream& =std::cerr, int firstIndex=0, int range=-1 ) constoverride;
, showVectorsScale(initData(&showVectorsScale, 0.0001f, "showVectorsScale", "Scale for vectors display. (default=0.0001)"))
157
-
, drawMode(initData(&drawMode,0,"drawMode","The way vectors will be drawn:\n- 0: Line\n- 1:Cylinder\n- 2: Arrow.\n\nThe DOFS will be drawn:\n- 0: point\n- >1: sphere. (default=0)"))
0 commit comments