#include "VISU_GaussPtsAct.h"
#include "VISU_GaussPointsPL.hxx"
+#include "VISU_OpenGLPointSpriteMapper.hxx"
+
#include "SVTK_Actor.h"
#include <vtkRenderer.h>
VISU_GaussPtsAct
::VISU_GaussPtsAct():
+ myPSMapper(VISU_OpenGLPointSpriteMapper::New()),
myGaussPointsPL(NULL),
myTextMapper(vtkTextMapper::New()),
myTextActor(VISU_GPTextActor::New()),
VISU_GaussPtsAct
::~VISU_GaussPtsAct()
-{}
+{
+ myPSMapper->Delete();
+}
//----------------------------------------------------------------
::SetPipeLine(VISU_PipeLine* thePipeLine)
{
myGaussPointsPL = dynamic_cast<VISU_GaussPointsPL*>(thePipeLine);
- Superclass::SetPipeLine(thePipeLine);
+
+ //Superclass::SetPipeLine(thePipeLine);
+
+ VISU_OpenGLPointSpriteMapper* aPSMapper = (VISU_OpenGLPointSpriteMapper*)myGaussPointsPL->GetMapper();
+
+ myPSMapper->SetInput( aPSMapper->GetInput() );
+ SetMapper( myPSMapper );
}
VISU_GaussPointsPL*
#include <vtkSmartPointer.h>
class VISU_GaussPointsPL;
+class VISU_OpenGLPointSpriteMapper;
class vtkTextMapper;
class vtkTextActor;
VISU_GaussPtsAct();
virtual ~VISU_GaussPtsAct();
+ VISU_OpenGLPointSpriteMapper* myPSMapper;
+
vtkSmartPointer<VISU_GaussPointsPL> myGaussPointsPL;
vtkSmartPointer<vtkTextMapper> myTextMapper;