VTK  9.2.6
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 "vtkActorNode.h"
29 #include "vtkRenderingRayTracingModule.h" // For export macro
30 #include "vtkTimeStamp.h" //for mapper changed time
31 #include "vtkWeakPointer.h" //also for mapper changed time
32 
33 class vtkActor;
35 class vtkDataArray;
40 class vtkMapper;
42 class vtkPolyData;
43 class vtkProperty;
44 class vtkTimeStamp;
45 
46 class VTKRENDERINGRAYTRACING_EXPORT vtkOSPRayActorNode : public vtkActorNode
47 {
48 public:
49  static vtkOSPRayActorNode* New();
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
57  vtkMTimeType GetMTime() override;
58 
64  {
65  ALL_EXACT = -1,
68  EACH_EXACT
69  };
70 
79  static vtkInformationIntegerKey* ENABLE_SCALING();
80 
82 
85  static void SetEnableScaling(int value, vtkActor*);
86  static int GetEnableScaling(vtkActor*);
88 
96  static vtkInformationStringKey* SCALE_ARRAY_NAME();
97 
101  static void SetScaleArrayName(const char* scaleArrayName, vtkActor*);
102 
107  static vtkInformationObjectBaseKey* SCALE_FUNCTION();
108 
112  static void SetScaleFunction(vtkPiecewiseFunction* scaleFunction, vtkActor*);
113 
117  static vtkInformationDoubleKey* LUMINOSITY();
118 
120 
123  static void SetLuminosity(double value, vtkProperty*);
124  static double GetLuminosity(vtkProperty*);
126 
127 protected:
129  ~vtkOSPRayActorNode() override;
130 
131 private:
132  vtkOSPRayActorNode(const vtkOSPRayActorNode&) = delete;
133  void operator=(const vtkOSPRayActorNode&) = delete;
134 
135  vtkWeakPointer<vtkMapper> LastMapper;
136  vtkTimeStamp MapperChangedTime;
137 };
138 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
Defines a 1D piecewise function.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
represent surface properties of a geometric object
Definition: vtkProperty.h:67
static vtkActorNode * New()
record modification and/or execution time
Definition: vtkTimeStamp.h:35
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:90
Key for string values in vtkInformation.
links vtkActor and vtkMapper to OSPRay
a simple class to control print indentation
Definition: vtkIndent.h:39
Key for integer values in vtkInformation.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
virtual vtkMTimeType GetMTime()
Return this object'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:87
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.