From: ouv Date: Wed, 21 Sep 2005 07:10:28 +0000 (+0000) Subject: ShallowCopy() method added X-Git-Tag: BR-D5-38-2003_D2005-12-10~174 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1b369988ae195722c7c20f41f695a59144373b2b;p=modules%2Fvisu.git ShallowCopy() method added --- diff --git a/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx b/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx index a75c5465..7912a6bb 100755 --- a/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx +++ b/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx @@ -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" ); diff --git a/src/PIPELINE/VISU_OpenGLPointSpriteMapper.hxx b/src/PIPELINE/VISU_OpenGLPointSpriteMapper.hxx index bdbea7cc..d2086b11 100755 --- a/src/PIPELINE/VISU_OpenGLPointSpriteMapper.hxx +++ b/src/PIPELINE/VISU_OpenGLPointSpriteMapper.hxx @@ -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