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 =========================================================================*/
25 #ifndef vtkOSPRayActorNode_h
26 #define vtkOSPRayActorNode_h
27 
28 #include "vtkRenderingOSPRayModule.h" // For export macro
29 #include "vtkActorNode.h"
30 #include "vtkTimeStamp.h" //for mapper changed time
31 #include "vtkWeakPointer.h" //also for mapper changed time
32 
33 class vtkActor;
35 class vtkDataArray;
39 class vtkMapper;
41 class vtkPolyData;
42 class vtkTimeStamp;
43 
44 
45 class VTKRENDERINGOSPRAY_EXPORT vtkOSPRayActorNode :
46  public vtkActorNode
47 {
48 public:
49  static vtkOSPRayActorNode* New();
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
57  virtual vtkMTimeType GetMTime();
58 
62  static vtkInformationIntegerKey* ENABLE_SCALING();
63 
65 
68  static void SetEnableScaling(int value, vtkActor *);
69  static int GetEnableScaling(vtkActor *);
71 
79  static vtkInformationStringKey* SCALE_ARRAY_NAME();
80 
84  static void SetScaleArrayName(const char *scaleArrayName, vtkActor *);
85 
90  static vtkInformationObjectBaseKey* SCALE_FUNCTION();
91 
95  static void SetScaleFunction(vtkPiecewiseFunction *scaleFunction, vtkActor *);
96 
97 protected:
100 
101 private:
102  vtkOSPRayActorNode(const vtkOSPRayActorNode&) VTK_DELETE_FUNCTION;
103  void operator=(const vtkOSPRayActorNode&) VTK_DELETE_FUNCTION;
104 
105  vtkWeakPointer<vtkMapper> LastMapper;
106  vtkTimeStamp MapperChangedTime;
107 };
108 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
Defines a 1D piecewise function.
static vtkActorNode * New()
record modification and/or execution time
Definition: vtkTimeStamp.h:35
rendering attributes for a multi-block dataset.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
Key for string values in vtkInformation.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
links vtkActor and vtkMapper to OSPRay
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
a weak reference to a vtkObject.
Key for integer values in vtkInformation.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
virtual vtkMTimeType GetMTime()
Return this object&#39;s modified time.
Key for vtkObjectBase values.
vtkViewNode specialized for vtkActors
Definition: vtkActorNode.h:33
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:91