OpenDAFF C++ API  v1.7
Directional Audio File Format
DAFFVizPlane.h
Go to the documentation of this file.
1 /*
2  * -------------------------------------------------------------------------------------
3  *
4  * OpenDAFF - A free, open source software package for directional audio data
5  * Copyright 2016 Institute of Technical Acoustics, RWTH Aachen University
6  * OpenDAFF is distributed under the Apache License Version 2.0
7  *
8  * ------------------------------------------------------------------------------------
9  *
10  */
11 
12 #ifndef IW_DAFF_PLANE
13 #define IW_DAFF_PLANE
14 
15 #include <daffviz/DAFFVizSGNode.h>
16 
17 // Vorwärtsdeklarationen
18 class vtkActor;
19 class vtkPlaneSource;
20 class vtkPolyDataMapper;
21 
22 namespace DAFFViz
23 {
24 
26 
30  class DAFF_API Plane : public DAFFViz::SGNode {
31  public:
32  Plane( SGNode* pParentNode = NULL );
33  Plane(double x1, double y1, double z1, double x2, double y2, double z2, double n1, double n2, double n3);
34  Plane(DAFFViz::SGNode* pParentNode, double x1, double y1, double z1, double x2, double y2, double z2, double n1, double n2, double n3);
35  ~Plane();
36 
37  // --= general methods =--
38 
40  void GetColor(double& r, double& g, double& b);
41 
43  void SetColor(const double r, const double g, const double b);
44 
46  double GetAlpha() const;
47 
49  void SetAlpha(const double a);
50 
52  void SetVisible(bool bVisible);
53 
55  bool IsVisible() const;
56 
57  private:
58  vtkSmartPointer< vtkPlaneSource > m_pSource;
59  vtkSmartPointer< vtkPolyDataMapper > m_pMapper;
60  vtkSmartPointer< vtkActor > m_pActor;
61 
62  // The initializer generates dynamic objects like source, mapper, actor ...
63  void init();
64  };
65 
66 } // End of namespace "DAFFViz"
67 
68 #endif // IW_DAFF_PLANE
#define DAFF_API
Definition: DAFFDefs.h:29
#define NULL
Definition: DAFFDefs.h:59
Base class for scene graph nodes.
Definition: DAFFVizSGNode.h:67
Simple plane object node [TODO Jonas!!].
Definition: DAFFVizPlane.h:30
OpenDAFF is a project from the Institute of Technical Acoustics, RWTH Aachen University, Germany.