mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
Start potring to the VTK OpenGL2 backend.
This commit is contained in:
parent
42c5470ae5
commit
379b43513c
@ -20,17 +20,32 @@
|
|||||||
#ifndef GEOM_PAINTERPOLYDATAMAPPER_H
|
#ifndef GEOM_PAINTERPOLYDATAMAPPER_H
|
||||||
#define GEOM_PAINTERPOLYDATAMAPPER_H
|
#define GEOM_PAINTERPOLYDATAMAPPER_H
|
||||||
|
|
||||||
|
#ifndef VTK_OPENGL2
|
||||||
#include <vtkPainterPolyDataMapper.h>
|
#include <vtkPainterPolyDataMapper.h>
|
||||||
|
#else
|
||||||
|
#include <vtkPolyDataMapper.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This class can be used to prevent drawing of mappers' content (due to an
|
* This class can be used to prevent drawing of mappers' content (due to an
|
||||||
* empty definition of GEOM_PainterPolyDataMapper::RenderPiece(...) method).
|
* empty definition of GEOM_PainterPolyDataMapper::RenderPiece(...) method).
|
||||||
* It is used as poly data mapper in GEOM_Actor class.
|
* It is used as poly data mapper in GEOM_Actor class.
|
||||||
*/
|
*/
|
||||||
class GEOM_PainterPolyDataMapper: public vtkPainterPolyDataMapper
|
class GEOM_PainterPolyDataMapper:
|
||||||
|
#ifndef VTK_OPENGL2
|
||||||
|
public vtkPainterPolyDataMapper
|
||||||
|
#else
|
||||||
|
public vtkPolyDataMapper
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
#ifndef VTK_OPENGL2
|
||||||
vtkTypeMacro(GEOM_PainterPolyDataMapper,vtkPainterPolyDataMapper);
|
vtkTypeMacro(GEOM_PainterPolyDataMapper,vtkPainterPolyDataMapper);
|
||||||
|
#else
|
||||||
|
vtkTypeMacro(GEOM_PainterPolyDataMapper,vtkPolyDataMapper);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static GEOM_PainterPolyDataMapper* New();
|
static GEOM_PainterPolyDataMapper* New();
|
||||||
|
|
||||||
virtual void RenderPiece(vtkRenderer *ren, vtkActor *act) {}
|
virtual void RenderPiece(vtkRenderer *ren, vtkActor *act) {}
|
||||||
|
Loading…
Reference in New Issue
Block a user