void SVTK_DeviceActor::SetBallEnabled( bool theBallEnabled ) {
myMapper->SetBallEnabled( theBallEnabled );
}
+/*!
+ * Set ball scale factor
+ * \param theBallScale double value a scale factor of ball element
+ */
+void SVTK_DeviceActor::SetBallScale( double theBallScale ) {
+ myMapper->SetBallScale( theBallScale );
+}
/*!
* Set point marker enabled
{
this->MarkerEnabled = false;
this->BallEnabled = false;
+ this->BallScale = 1;
this->MarkerType = VTK::MT_NONE;
this->MarkerScale = VTK::MS_NONE;
this->MarkerId = 0;
else
pm->SetMarkerTexture( this->MarkerId, this->MarkerTexture );
pm->SetBallEnabled( this->BallEnabled );
+ pm->SetBallScale( this->BallScale );
this->GeometryExtractor = gf;
this->PolyDataMapper = pm;
aMapper->SetBallEnabled( theBallEnabled );
}
+//-----------------------------------------------------------------------------
+void VTKViewer_DataSetMapper::SetBallScale( double theBallScale )
+{
+ this->BallScale = theBallScale;
+ if( this->PolyDataMapper )
+ if( VTKViewer_PolyDataMapper* aMapper = dynamic_cast<VTKViewer_PolyDataMapper*>( this->PolyDataMapper ) )
+ aMapper->SetBallScale( theBallScale );
+}
//----------------------------------------------------------------------------
void VTKViewer_DataSetMapper::SetMarkerStd( VTK::MarkerType theMarkerType, VTK::MarkerScale theMarkerScale )
//! Set point marker enabled
void SetMarkerEnabled( bool );
+
+ //! Set ball element enabled
void SetBallEnabled( bool );
-
+
+ //! Set ball element scale factor
+ void SetBallScale( double );
+
//! Set standard point marker
void SetMarkerStd( VTK::MarkerType, VTK::MarkerScale );
private:
bool MarkerEnabled;
bool BallEnabled;
+ double BallScale;
VTK::MarkerType MarkerType;
VTK::MarkerScale MarkerScale;
int MarkerId;