VTK  9.1.0
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 "vtkActorNode.h"
26 #include "vtkRenderingRayTracingModule.h" // For export macro
27 #include "vtkTimeStamp.h" //for mapper changed time
28 #include "vtkWeakPointer.h" //also for mapper changed time
29 
30 class vtkActor;
32 class vtkDataArray;
37 class vtkMapper;
39 class vtkPolyData;
40 class vtkProperty;
41 class vtkTimeStamp;
42 
43 class VTKRENDERINGRAYTRACING_EXPORT vtkOSPRayActorNode : public vtkActorNode
44 {
45 public:
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
54  vtkMTimeType GetMTime() override;
55 
61  {
62  ALL_EXACT = -1,
65  EACH_EXACT
66  };
67 
77 
79 
82  static void SetEnableScaling(int value, vtkActor*);
83  static int GetEnableScaling(vtkActor*);
85 
94 
98  static void SetScaleArrayName(const char* scaleArrayName, vtkActor*);
99 
105 
109  static void SetScaleFunction(vtkPiecewiseFunction* scaleFunction, vtkActor*);
110 
115 
117 
120  static void SetLuminosity(double value, vtkProperty*);
121  static double GetLuminosity(vtkProperty*);
123 
124 protected:
127 
128 private:
129  vtkOSPRayActorNode(const vtkOSPRayActorNode&) = delete;
130  void operator=(const vtkOSPRayActorNode&) = delete;
131 
132  vtkWeakPointer<vtkMapper> LastMapper;
133  vtkTimeStamp MapperChangedTime;
134 };
135 #endif
vtkInformationStringKey
Key for string values in vtkInformation.
Definition: vtkInformationStringKey.h:34
vtkOSPRayActorNode::ScalingMode
ScalingMode
Scaling modes for the spheres and cylinders that the raytracer renders for points and lines created b...
Definition: vtkOSPRayActorNode.h:61
vtkTimeStamp.h
vtkOSPRayActorNode::New
static vtkOSPRayActorNode * New()
vtkX3D::value
@ value
Definition: vtkX3D.h:226
vtkOSPRayActorNode::SetLuminosity
static void SetLuminosity(double value, vtkProperty *)
Convenience method to set luminosity on my renderable.
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:52
vtkOSPRayActorNode::SCALE_FUNCTION
static vtkInformationObjectBaseKey * SCALE_FUNCTION()
A piecewise function for values from the scale array that alters the resulting radii arbitrarily.
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:159
vtkOSPRayActorNode::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformationDoubleKey
Key for double values in vtkInformation.
Definition: vtkInformationDoubleKey.h:32
vtkOSPRayActorNode::ENABLE_SCALING
static vtkInformationIntegerKey * ENABLE_SCALING()
A key to set the ScalingMode.
vtkOSPRayActorNode::vtkOSPRayActorNode
vtkOSPRayActorNode()
vtkOSPRayActorNode::SetEnableScaling
static void SetEnableScaling(int value, vtkActor *)
Convenience method to set enable_scaling on my renderable.
vtkCompositeDataDisplayAttributes
Rendering attributes for a multi-block dataset.
Definition: vtkCompositeDataDisplayAttributes.h:59
vtkOSPRayActorNode::ALL_APPROXIMATE
@ ALL_APPROXIMATE
Definition: vtkOSPRayActorNode.h:63
vtkOSPRayActorNode::GetEnableScaling
static int GetEnableScaling(vtkActor *)
Convenience method to set enable_scaling on my renderable.
vtkOSPRayActorNode::~vtkOSPRayActorNode
~vtkOSPRayActorNode() override
vtkOSPRayActorNode::SCALE_ARRAY_NAME
static vtkInformationStringKey * SCALE_ARRAY_NAME()
Name of a point aligned, single component wide, double valued array that, when added to the mapper,...
vtkMapper
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:171
vtkOSPRayActorNode
links vtkActor and vtkMapper to OSPRay
Definition: vtkOSPRayActorNode.h:44
vtkInformationObjectBaseKey
Key for vtkObjectBase values.
Definition: vtkInformationObjectBaseKey.h:34
vtkInformationIntegerKey
Key for integer values in vtkInformation.
Definition: vtkInformationIntegerKey.h:32
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:155
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkOSPRayActorNode::LUMINOSITY
static vtkInformationDoubleKey * LUMINOSITY()
Indicates that the actor acts as a light emitting object.
vtkOSPRayActorNode::SetScaleFunction
static void SetScaleFunction(vtkPiecewiseFunction *scaleFunction, vtkActor *)
Convenience method to set a scale_function on my renderable.
vtkWeakPointer.h
vtkPiecewiseFunction
Defines a 1D piecewise function.
Definition: vtkPiecewiseFunction.h:145
vtkOSPRayActorNode::SetScaleArrayName
static void SetScaleArrayName(const char *scaleArrayName, vtkActor *)
Convenience method to set a scale_array_name on my renderable.
vtkOSPRayActorNode::GetLuminosity
static double GetLuminosity(vtkProperty *)
Convenience method to set luminosity on my renderable.
vtkActorNode
vtkViewNode specialized for vtkActors
Definition: vtkActorNode.h:31
vtkActorNode.h
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:195
vtkOSPRayActorNode::GetMTime
vtkMTimeType GetMTime() override
Overridden to take into account my renderables time, including mapper and data into mapper inclusive ...
vtkProperty
represent surface properties of a geometric object
Definition: vtkProperty.h:171
vtkOSPRayActorNode::EACH_MAPPED
@ EACH_MAPPED
Definition: vtkOSPRayActorNode.h:64
vtkWeakPointer< vtkMapper >
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287