-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquickVtkActor.h
More file actions
47 lines (34 loc) · 1.08 KB
/
quickVtkActor.h
File metadata and controls
47 lines (34 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#pragma once
#include "quickVtkProp3D.h"
#include "quickVtkProperty.h"
#include "quickVtkTexture.h"
#include <vtkActor.h>
namespace quick { namespace vtk {
class Dispatcher;
class Mapper;
class Texture;
class Actor : public Prop3D {
Q_OBJECT
Q_CLASSINFO("DefaultProperty", "mapper");
public:
//Q_PROPERTY(quick::Vtk::Texture* texture READ getTexture CONSTANT);
Q_PROPERTY(quick::vtk::Mapper* mapper READ mapper WRITE setMapper NOTIFY mapperChanged);
Mapper* mapper() const;
void setMapper(Mapper*);
Q_SIGNAL void mapperChanged(quick::vtk::Mapper*);
Mapper* m_mapper = nullptr;
Q_PROPERTY(quick::vtk::Property* property READ property CONSTANT);
Property* property();
Property m_property;
Q_PROPERTY(quick::vtk::Texture* texture READ texture CONSTANT);
Texture* texture();
Texture m_texture;
public:
Actor(QObject* parent=nullptr);
~Actor() override;
vtkUserData initializeVTK(vtkRenderWindow*, vtkUserData) override;
vtkActor* myVtkObject(vtkUserData) const override;
protected:
vtkActor* makeProp() const override;
};
} }