VTK
vtkOSPRayActorNode.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOSPRayActorNode.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 =========================================================================*/
22 #ifndef vtkOSPRayActorNode_h
23 #define vtkOSPRayActorNode_h
24 
25 #include "vtkRenderingOSPRayModule.h" // For export macro
26 #include "vtkActorNode.h"
27 #include "vtkTimeStamp.h" //for mapper changed time
28 #include "vtkWeakPointer.h" //also for mapper changed time
29 
30 class vtkActor;
32 class vtkDataArray;
36 class vtkMapper;
38 class vtkPolyData;
39 class vtkTimeStamp;
40 
41 
42 class VTKRENDERINGOSPRAY_EXPORT vtkOSPRayActorNode :
43  public vtkActorNode
44 {
45 public:
46  static vtkOSPRayActorNode* New();
48  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
49 
54  virtual vtkMTimeType GetMTime() VTK_OVERRIDE;
55 
59  static vtkInformationIntegerKey* ENABLE_SCALING();
60 
62 
65  static void SetEnableScaling(int value, vtkActor *);
66  static int GetEnableScaling(vtkActor *);
68 
76  static vtkInformationStringKey* SCALE_ARRAY_NAME();
77 
81  static void SetScaleArrayName(const char *scaleArrayName, vtkActor *);
82 
87  static vtkInformationObjectBaseKey* SCALE_FUNCTION();
88 
92  static void SetScaleFunction(vtkPiecewiseFunction *scaleFunction, vtkActor *);
93 
94 protected:
96  ~vtkOSPRayActorNode();
97 
98 private:
99  vtkOSPRayActorNode(const vtkOSPRayActorNode&) VTK_DELETE_FUNCTION;
100  void operator=(const vtkOSPRayActorNode&) VTK_DELETE_FUNCTION;
101 
102  vtkWeakPointer<vtkMapper> LastMapper;
103  vtkTimeStamp MapperChangedTime;
104 };
105 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:45
Defines a 1D piecewise function.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
static vtkActorNode * New()
record modification and/or execution time
Definition: vtkTimeStamp.h:32
rendering attributes for a multi-block dataset.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
Key for string values in vtkInformation.
links vtkActor and vtkMapper to OSPRay
a simple class to control print indentation
Definition: vtkIndent.h:33
a weak reference to a vtkObject.
Key for integer values in vtkInformation.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:48
virtual vtkMTimeType GetMTime()
Return this object&#39;s modified time.
Key for vtkObjectBase values.
vtkViewNode specialized for vtkActors
Definition: vtkActorNode.h:30
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:85
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.