VTK  9.7.1
vtkOSPRayActorNode.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkOSPRayActorNode_h
14 #define vtkOSPRayActorNode_h
15 
16 #include "vtkActorNode.h"
17 #include "vtkRenderingRayTracingModule.h" // For export macro
18 #include "vtkTimeStamp.h" //for mapper changed time
19 #include "vtkWeakPointer.h" //also for mapper changed time
20 
21 VTK_ABI_NAMESPACE_BEGIN
22 class vtkActor;
24 class vtkDataArray;
29 class vtkMapper;
31 class vtkPolyData;
32 class vtkProperty;
33 class vtkTimeStamp;
34 
35 class VTKRENDERINGRAYTRACING_EXPORT vtkOSPRayActorNode : public vtkActorNode
36 {
37 public:
38  static vtkOSPRayActorNode* New();
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
46  vtkMTimeType GetMTime() override;
47 
53  {
54  ALL_EXACT = -1,
57  EACH_EXACT
58  };
59 
69  static vtkInformationIntegerKey* ENABLE_SCALING();
70 
72 
75  static void SetEnableScaling(int value, vtkActor*);
76  static int GetEnableScaling(vtkActor*);
78 
87  static vtkInformationStringKey* SCALE_ARRAY_NAME();
88 
92  static void SetScaleArrayName(const char* scaleArrayName, vtkActor*);
93 
99  static vtkInformationObjectBaseKey* SCALE_FUNCTION();
100 
104  static void SetScaleFunction(vtkPiecewiseFunction* scaleFunction, vtkActor*);
105 
110  static vtkInformationDoubleKey* LUMINOSITY();
111 
113 
116  static void SetLuminosity(double value, vtkProperty*);
117  static double GetLuminosity(vtkProperty*);
119 
120 protected:
122  ~vtkOSPRayActorNode() override;
123 
124 private:
125  vtkOSPRayActorNode(const vtkOSPRayActorNode&) = delete;
126  void operator=(const vtkOSPRayActorNode&) = delete;
127 
128  vtkWeakPointer<vtkMapper> LastMapper;
129  vtkTimeStamp MapperChangedTime;
130 };
131 VTK_ABI_NAMESPACE_END
132 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:41
Defines a 1D piecewise function.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:318
represent surface properties of a geometric object
Definition: vtkProperty.h:59
static vtkActorNode * New()
record modification and/or execution time
Definition: vtkTimeStamp.h:24
Rendering attributes for a multi-block dataset.
ScalingMode
Scaling modes for the spheres and cylinders that the raytracer renders for points and lines created b...
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:71
Key for string values in vtkInformation.
links vtkActor and vtkMapper to OSPRay
a simple class to control print indentation
Definition: vtkIndent.h:28
Key for integer values in vtkInformation.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
virtual vtkMTimeType GetMTime()
Return this object's modified time.
Key for vtkObjectBase values.
vtkViewNode specialized for vtkActors
Definition: vtkActorNode.h:22
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:77
Key for double values in vtkInformation.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.