Salome HOME
0022479: EDF 2823 SMESH: Add "multiplier" coefficient for balls
[modules/smesh.git] / src / OBJECT / SMESH_DeviceActor.cxx
index 4785155d80478fffa598fa2f65c66c8da1519838..a1d8edf752d5f87625bfacd09802efac143b308b 100644 (file)
@@ -959,6 +959,16 @@ void SMESH_DeviceActor::SetBallEnabled( bool theBallEnabled ) {
   myMapper->SetBallEnabled( theBallEnabled );
 }
 
+/*!
+ * Set point marker scale factor
+ * \param theBallScale integer value which specifies a scale factor of ball element
+ */
+void SMESH_DeviceActor::SetBallScale( int theBallScale )
+{
+  myMapper->SetBallScale( theBallScale );
+  myMapper->Modified();
+}
+
 /*!
  * Set standard point marker
  * \param theMarkerType type of the marker
@@ -1005,6 +1015,15 @@ int SMESH_DeviceActor::GetMarkerTexture()
   return myMapper->GetMarkerTexture();
 }
 
+/*!
+ * Get scale factor of ball element
+ * \return scale factor of ball element
+ */
+int SMESH_DeviceActor::GetBallScale()
+{
+  return myMapper->GetBallScale();
+}
+
 void SMESH_DeviceActor::SetCoincident3DAllowed(bool theFlag) {
   myGeomFilter->SetAppendCoincident3D(theFlag);
 }