]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
ShallowCopy() method added
authorouv <ouv@opencascade.com>
Wed, 21 Sep 2005 07:10:28 +0000 (07:10 +0000)
committerouv <ouv@opencascade.com>
Wed, 21 Sep 2005 07:10:28 +0000 (07:10 +0000)
src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx
src/PIPELINE/VISU_OpenGLPointSpriteMapper.hxx

index a75c5465777b5496898fac0d9598a40d83ccf8de..7912a6bb418c60c23c0f9b672bb51477f56b5346 100755 (executable)
@@ -161,6 +161,21 @@ VISU_OpenGLPointSpriteMapper::~VISU_OpenGLPointSpriteMapper()
   }
 }
 //-----------------------------------------------------------------------------
+void VISU_OpenGLPointSpriteMapper::ShallowCopy( vtkAbstractMapper* mapper )
+{
+  VISU_OpenGLPointSpriteMapper* m = VISU_OpenGLPointSpriteMapper::SafeDownCast(mapper);
+  if( m != NULL )
+  {
+    this->SetPointSpriteClamp( m->GetPointSpriteClamp() );
+    this->SetPointSpriteSize( m->GetPointSpriteSize() );
+    this->SetPointSpriteMinSize( m->GetPointSpriteMinSize() );
+    this->SetPointSpriteMaxSize( m->GetPointSpriteMaxSize() );
+    this->SetPointSpriteMagnification( m->GetPointSpriteMagnification() );
+  }
+  MAPPER_SUPERCLASS::ShallowCopy(mapper);
+
+}
+//-----------------------------------------------------------------------------
 char* readFromFile( std::string fileName )
 {
   FILE* file = fopen( fileName.c_str(), "r" );
index bdbea7cc44dc0b3dabc9927c4a792f8e76b01619..d2086b117183765373856c1064b4d8877e616791 100755 (executable)
@@ -68,6 +68,8 @@ public:
   vtkTypeRevisionMacro(VISU_OpenGLPointSpriteMapper,MAPPER_SUPERCLASS);
   virtual void PrintSelf(ostream& os, vtkIndent indent);
 
+  void ShallowCopy(vtkAbstractMapper*);
+
   // Description:
   // Specify the name of a scalar array which will be used to control
   // the alpha value of each point. The values should be between 0,1