OGS
QVtkDataSetMapper.h
Go to the documentation of this file.
1
15#pragma once
16
17#include <QObject>
18#include <vtkDataSetMapper.h>
19
21class QVtkDataSetMapper : public QObject, public vtkDataSetMapper
22{
23 Q_OBJECT
24
25public:
28
29 vtkTypeMacro(QVtkDataSetMapper, vtkDataSetMapper);
30
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
34public slots:
36 virtual void SetScalarVisibility(bool on);
37 void SetScalarVisibility(int on) override
38 {
39 SetScalarVisibility(static_cast<bool>(on));
40 }
41
42protected:
45
48
49private:
50 QVtkDataSetMapper(const QVtkDataSetMapper&); // Not implemented.
51 void operator=(const QVtkDataSetMapper&); // Not implemented
52};
Simply wraps vtkDataSetMapper as a Qt object to enable slot connections.
QVtkDataSetMapper(const QVtkDataSetMapper &)
static QVtkDataSetMapper * New()
Create new objects with New() because of VTKs reference counting.
void SetScalarVisibility(int on) override
virtual void SetScalarVisibility(bool on)
Sets the scalar visibility on this mapper.
void PrintSelf(ostream &os, vtkIndent indent) override
Prints information about itself.
~QVtkDataSetMapper() override
Destructor.
vtkTypeMacro(QVtkDataSetMapper, vtkDataSetMapper)
void operator=(const QVtkDataSetMapper &)
QVtkDataSetMapper()
Constructor.