VTK
vtkAssemblyNode.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAssemblyNode.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
46 #ifndef vtkAssemblyNode_h
47 #define vtkAssemblyNode_h
48 
49 #include "vtkRenderingCoreModule.h" // For export macro
50 #include "vtkObject.h"
51 
52 class vtkProp;
53 class vtkMatrix4x4;
54 
55 class VTKRENDERINGCORE_EXPORT vtkAssemblyNode : public vtkObject
56 {
57 public:
61  static vtkAssemblyNode *New();
62 
63  vtkTypeMacro(vtkAssemblyNode, vtkObject);
64  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
67 
70  virtual void SetViewProp(vtkProp* prop);
71  vtkGetObjectMacro(ViewProp, vtkProp);
73 
75 
82  void SetMatrix(vtkMatrix4x4 *matrix);
83  vtkGetObjectMacro(Matrix, vtkMatrix4x4);
85 
90  vtkMTimeType GetMTime() override;
91 
92 protected:
94  ~vtkAssemblyNode() override;
95 
96 private:
97  vtkProp *ViewProp; //reference to vtkProp
98  vtkMatrix4x4 *Matrix; //associated matrix
99 
100 private:
101  void operator=(const vtkAssemblyNode&) = delete;
102  vtkAssemblyNode(const vtkAssemblyNode&) = delete;
103 };
104 
105 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
abstract base class for most VTK objects
Definition: vtkObject.h:59
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:41
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:304
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual vtkMTimeType GetMTime()
Return this object's modified time.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
represent a node in an assembly