vsg: include/vsg/core/Visitor.h Source File

vsg 1.1.10 VulkanSceneGraph library |

Loading...
Searching...
No Matches
Visitor.h
1#pragma once
2
3/* <editor-fold desc="MIT License">
4
5Copyright(c) 2018 Robert Osfield
6
7Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8
9The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
10
11THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12
13</editor-fold> */
14
15#include <vsg/core/Array.h>
16#include <vsg/core/Array2D.h>
17#include <vsg/core/Array3D.h>
18#include <vsg/core/Mask.h>
19#include <vsg/core/Value.h>
20
21namespace vsg
22{
23 // forward declare core Objects
24 class Objects;
25 class External;
26
27 // forward declare node classes
28 class Node;
29 class Commands;
30 class Group;
31 class QuadGroup;
32 class LOD;
33 class PagedLOD;
34 class StateGroup;
35 class CullGroup;
36 class CullNode;
37 class Transform;
38 class MatrixTransform;
39 class CoordinateFrame;
40 class Geometry;
41 class VertexDraw;
42 class VertexIndexDraw;
43 class DepthSorted;
44 class Layer;
45 class Bin;
46 class Switch;
47 class Light;
48 class AmbientLight;
49 class DirectionalLight;
50 class PointLight;
51 class SpotLight;
52 class InstrumentationNode;
53 class RegionOfInterest;
54
55 // forward declare text classes
56 class Text;
57 class TextGroup;
58 class TextTechnique;
59 class TextLayout;
60
61 // forward declare animation classes
62 class Animation;
63 class AnimationGroup;
64 class AnimationSampler;
65 class TransformSampler;
66 class CameraSampler;
67 class MorphSampler;
68 class JointSampler;
69 class Joint;
70
71 // forward declare vulkan classes
72 class BufferInfo;
73 class ImageInfo;
74 class ImageView;
75 class Image;
76 class Compilable;
77 class Command;
78 class StateCommand;
79 class StateSwitch;
80 class CommandBuffer;
81 class RenderPass;
82 class BindDescriptorSet;
83 class BindDescriptorSets;
84 class BindViewDescriptorSets;
85 class Descriptor;
86 class DescriptorBuffer;
87 class DescriptorImage;
88 class DescriptorSet;
89 class BindVertexBuffers;
90 class BindIndexBuffer;
91 class BindComputePipeline;
92 class BindGraphicsPipeline;
93 class BindRayTracingPipeline;
94 class GraphicsPipeline;
95 class ComputePipeline;
96 class RayTracingPipeline;
97 class Draw;
98 class DrawIndexed;
99 class ShaderStage;
100 class GraphicsPipelineState;
101 class VertexInputState;
102 class InputAssemblyState;
103 class TessellationState;
104 class ViewportState;
105 class RasterizationState;
106 class MultisampleState;
107 class DepthStencilState;
108 class ColorBlendState;
109 class DynamicState;
110 class ResourceHints;
111 class ClearAttachments;
112 class ClearColorImage;
113 class ClearDepthStencilImage;
114 class QueryPool;
115 class ResetQueryPool;
116 class BeginQuery;
117 class EndQuery;
118 class WriteTimestamp;
119 class CopyQueryPoolResults;
120
121 // forward declare rtx classes
122 class DrawMeshTasks;
123 class DrawMeshTasksIndirect;
124 class DrawMeshTasksIndirectCount;
125
126 // forward declare ui events classes
127 class UIEvent;
128 class WindowEvent;
129 class ExposeWindowEvent;
130 class ConfigureWindowEvent;
131 class CloseWindowEvent;
132 class FocusInEvent;
133 class FocusOutEvent;
134 class KeyEvent;
135 class KeyPressEvent;
136 class KeyReleaseEvent;
137 class PointerEvent;
138 class ButtonPressEvent;
139 class ButtonReleaseEvent;
140 class MoveEvent;
141 class TouchEvent;
142 class TouchDownEvent;
143 class TouchUpEvent;
144 class TouchMoveEvent;
145 class ScrollWheelEvent;
146 class TerminateEvent;
147 class FrameEvent;
148
149 // forward declare util classes
150 class ShaderCompileSettings;
151
152 // forward declare viewer classes
153 class Camera;
154 class CommandGraph;
155 class SecondaryCommandGraph;
156 class RenderGraph;
157 class View;
158 class Viewer;
159 class ViewMatrix;
160 class LookAt;
161 class LookDirection;
162 class RelativeViewMatrix;
163 class TrackingViewMatrix;
164 class ProjectionMatrix;
165 class Perspective;
166 class Orthographic;
167 class RelativeProjection;
168 class EllipsoidPerspective;
169
170 // forward declare general classes
171 class FrameStamp;
172 class Instrumentation;
173
174 class VSG_DECLSPEC Visitor : public Object
175 {
176 public:
177 Visitor();
178
179 Visitor(const Visitor& rhs, const CopyOp& copyop = {}) :
180 Object(rhs, copyop),
181 traversalMask(rhs.traversalMask),
182 overrideMask(rhs.overrideMask) {}
183
184 Mask traversalMask = MASK_ALL;
185 Mask overrideMask = MASK_OFF;
186
187 virtual Instrumentation* getInstrumentation() { return nullptr; }
188
189 virtual void apply(Object&);
190 virtual void apply(Objects&);
191 virtual void apply(External&);
192 virtual void apply(Data&);
193
194 // Values
195 virtual void apply(stringValue&);
196 virtual void apply(wstringValue&);
197 virtual void apply(boolValue&);
198 virtual void apply(intValue&);
199 virtual void apply(uintValue&);
200 virtual void apply(floatValue&);
201 virtual void apply(doubleValue&);
202 virtual void apply(vec2Value&);
203 virtual void apply(vec3Value&);
204 virtual void apply(vec4Value&);
205 virtual void apply(dvec2Value&);
206 virtual void apply(dvec3Value&);
207 virtual void apply(dvec4Value&);
208 virtual void apply(bvec2Value&);
209 virtual void apply(bvec3Value&);
210 virtual void apply(bvec4Value&);
211 virtual void apply(ubvec2Value&);
212 virtual void apply(ubvec3Value&);
213 virtual void apply(ubvec4Value&);
214 virtual void apply(svec2Value&);
215 virtual void apply(svec3Value&);
216 virtual void apply(svec4Value&);
217 virtual void apply(usvec2Value&);
218 virtual void apply(usvec3Value&);
219 virtual void apply(usvec4Value&);
220 virtual void apply(ivec2Value&);
221 virtual void apply(ivec3Value&);
222 virtual void apply(ivec4Value&);
223 virtual void apply(uivec2Value&);
224 virtual void apply(uivec3Value&);
225 virtual void apply(uivec4Value&);
226 virtual void apply(mat4Value&);
227 virtual void apply(dmat4Value&);
228
229 // Arrays
230 virtual void apply(byteArray&);
231 virtual void apply(ubyteArray&);
232 virtual void apply(shortArray&);
233 virtual void apply(ushortArray&);
234 virtual void apply(intArray&);
235 virtual void apply(uintArray&);
236 virtual void apply(floatArray&);
237 virtual void apply(doubleArray&);
238 virtual void apply(vec2Array&);
239 virtual void apply(vec3Array&);
240 virtual void apply(vec4Array&);
241 virtual void apply(dvec2Array&);
242 virtual void apply(dvec3Array&);
243 virtual void apply(dvec4Array&);
244 virtual void apply(bvec2Array&);
245 virtual void apply(bvec3Array&);
246 virtual void apply(bvec4Array&);
247 virtual void apply(svec2Array&);
248 virtual void apply(svec3Array&);
249 virtual void apply(svec4Array&);
250 virtual void apply(ivec2Array&);
251 virtual void apply(ivec3Array&);
252 virtual void apply(ivec4Array&);
253 virtual void apply(ubvec2Array&);
254 virtual void apply(ubvec3Array&);
255 virtual void apply(ubvec4Array&);
256 virtual void apply(usvec2Array&);
257 virtual void apply(usvec3Array&);
258 virtual void apply(usvec4Array&);
259 virtual void apply(uivec2Array&);
260 virtual void apply(uivec3Array&);
261 virtual void apply(uivec4Array&);
262 virtual void apply(mat4Array&);
263 virtual void apply(dmat4Array&);
264 virtual void apply(block64Array&);
265 virtual void apply(block128Array&);
266
267 // Array2Ds
268 virtual void apply(byteArray2D&);
269 virtual void apply(ubyteArray2D&);
270 virtual void apply(shortArray2D&);
271 virtual void apply(ushortArray2D&);
272 virtual void apply(intArray2D&);
273 virtual void apply(uintArray2D&);
274 virtual void apply(floatArray2D&);
275 virtual void apply(doubleArray2D&);
276 virtual void apply(vec2Array2D&);
277 virtual void apply(vec3Array2D&);
278 virtual void apply(vec4Array2D&);
279 virtual void apply(dvec2Array2D&);
280 virtual void apply(dvec3Array2D&);
281 virtual void apply(dvec4Array2D&);
282 virtual void apply(bvec2Array2D&);
283 virtual void apply(bvec3Array2D&);
284 virtual void apply(bvec4Array2D&);
285 virtual void apply(svec2Array2D&);
286 virtual void apply(svec3Array2D&);
287 virtual void apply(svec4Array2D&);
288 virtual void apply(ivec2Array2D&);
289 virtual void apply(ivec3Array2D&);
290 virtual void apply(ivec4Array2D&);
291 virtual void apply(ubvec2Array2D&);
292 virtual void apply(ubvec3Array2D&);
293 virtual void apply(ubvec4Array2D&);
294 virtual void apply(usvec2Array2D&);
295 virtual void apply(usvec3Array2D&);
296 virtual void apply(usvec4Array2D&);
297 virtual void apply(uivec2Array2D&);
298 virtual void apply(uivec3Array2D&);
299 virtual void apply(uivec4Array2D&);
300 virtual void apply(block64Array2D&);
301 virtual void apply(block128Array2D&);
302
303 // Array3Ds
304 virtual void apply(byteArray3D&);
305 virtual void apply(ubyteArray3D&);
306 virtual void apply(shortArray3D&);
307 virtual void apply(ushortArray3D&);
308 virtual void apply(intArray3D&);
309 virtual void apply(uintArray3D&);
310 virtual void apply(floatArray3D&);
311 virtual void apply(doubleArray3D&);
312 virtual void apply(vec2Array3D&);
313 virtual void apply(vec3Array3D&);
314 virtual void apply(vec4Array3D&);
315 virtual void apply(dvec2Array3D&);
316 virtual void apply(dvec3Array3D&);
317 virtual void apply(dvec4Array3D&);
318 virtual void apply(ubvec2Array3D&);
319 virtual void apply(ubvec3Array3D&);
320 virtual void apply(ubvec4Array3D&);
321 virtual void apply(block64Array3D&);
322 virtual void apply(block128Array3D&);
323
324 // Nodes
325 virtual void apply(Node&);
326 virtual void apply(Compilable&);
327 virtual void apply(Commands&);
328 virtual void apply(Group&);
329 virtual void apply(QuadGroup&);
330 virtual void apply(LOD&);
331 virtual void apply(PagedLOD&);
332 virtual void apply(StateGroup&);
333 virtual void apply(CullGroup&);
334 virtual void apply(CullNode&);
335 virtual void apply(Transform&);
336 virtual void apply(MatrixTransform&);
337 virtual void apply(CoordinateFrame&);
338 virtual void apply(Geometry&);
339 virtual void apply(VertexDraw&);
340 virtual void apply(VertexIndexDraw&);
341 virtual void apply(DepthSorted&);
342 virtual void apply(Layer&);
343 virtual void apply(Bin&);
344 virtual void apply(Switch&);
345 virtual void apply(Light&);
346 virtual void apply(AmbientLight&);
347 virtual void apply(DirectionalLight&);
348 virtual void apply(PointLight&);
349 virtual void apply(SpotLight&);
350 virtual void apply(InstrumentationNode&);
351 virtual void apply(RegionOfInterest&);
352
353 // text
354 virtual void apply(Text&);
355 virtual void apply(TextGroup&);
356 virtual void apply(TextTechnique&);
357 virtual void apply(TextLayout&);
358
359 // animation
360 virtual void apply(Animation&);
361 virtual void apply(AnimationGroup&);
362 virtual void apply(AnimationSampler&);
363 virtual void apply(JointSampler&);
364 virtual void apply(MorphSampler&);
365 virtual void apply(TransformSampler&);
366 virtual void apply(CameraSampler&);
367 virtual void apply(Joint&);
368
369 // Vulkan nodes
370 virtual void apply(BufferInfo&);
371 virtual void apply(ImageInfo&);
372 virtual void apply(ImageView&);
373 virtual void apply(Image&);
374 virtual void apply(Command&);
375 virtual void apply(StateCommand&);
376 virtual void apply(StateSwitch&);
377 virtual void apply(CommandBuffer&);
378 virtual void apply(RenderPass&);
379 virtual void apply(BindDescriptorSet&);
380 virtual void apply(BindDescriptorSets&);
381 virtual void apply(BindViewDescriptorSets&);
382 virtual void apply(Descriptor&);
383 virtual void apply(DescriptorBuffer&);
384 virtual void apply(DescriptorImage&);
385 virtual void apply(DescriptorSet&);
386 virtual void apply(BindVertexBuffers&);
387 virtual void apply(BindIndexBuffer&);
388 virtual void apply(BindComputePipeline&);
389 virtual void apply(BindGraphicsPipeline&);
390 virtual void apply(BindRayTracingPipeline&);
391 virtual void apply(GraphicsPipeline&);
392 virtual void apply(ComputePipeline&);
393 virtual void apply(RayTracingPipeline&);
394 virtual void apply(GraphicsPipelineState&);
395 virtual void apply(ShaderStage&);
396 virtual void apply(VertexInputState&);
397 virtual void apply(InputAssemblyState&);
398 virtual void apply(TessellationState&);
399 virtual void apply(ViewportState&);
400 virtual void apply(RasterizationState&);
401 virtual void apply(MultisampleState&);
402 virtual void apply(DepthStencilState&);
403 virtual void apply(ColorBlendState&);
404 virtual void apply(DynamicState&);
405 virtual void apply(ResourceHints&);
406 virtual void apply(Draw&);
407 virtual void apply(DrawIndexed&);
408 virtual void apply(ClearAttachments&);
409 virtual void apply(ClearColorImage&);
410 virtual void apply(ClearDepthStencilImage&);
411 virtual void apply(QueryPool&);
412 virtual void apply(ResetQueryPool&);
413 virtual void apply(BeginQuery&);
414 virtual void apply(EndQuery&);
415 virtual void apply(WriteTimestamp&);
416 virtual void apply(CopyQueryPoolResults&);
417
418 // mesh shading classes
419 virtual void apply(DrawMeshTasks&);
420 virtual void apply(DrawMeshTasksIndirect&);
421 virtual void apply(DrawMeshTasksIndirectCount&);
422
423 // ui events
424 virtual void apply(UIEvent&);
425 virtual void apply(WindowEvent&);
426 virtual void apply(ExposeWindowEvent&);
427 virtual void apply(ConfigureWindowEvent&);
428 virtual void apply(CloseWindowEvent&);
429 virtual void apply(FocusInEvent&);
430 virtual void apply(FocusOutEvent&);
431 virtual void apply(KeyEvent&);
432 virtual void apply(KeyPressEvent&);
433 virtual void apply(KeyReleaseEvent&);
434 virtual void apply(PointerEvent&);
435 virtual void apply(ButtonPressEvent&);
436 virtual void apply(ButtonReleaseEvent&);
437 virtual void apply(MoveEvent&);
438 virtual void apply(TouchEvent&);
439 virtual void apply(TouchDownEvent&);
440 virtual void apply(TouchUpEvent&);
441 virtual void apply(TouchMoveEvent&);
442 virtual void apply(ScrollWheelEvent&);
443 virtual void apply(TerminateEvent&);
444 virtual void apply(FrameEvent&);
445
446 // utils
447 virtual void apply(ShaderCompileSettings&);
448
449 // app
450 virtual void apply(Camera&);
451 virtual void apply(CommandGraph&);
452 virtual void apply(SecondaryCommandGraph&);
453 virtual void apply(RenderGraph&);
454 virtual void apply(View&);
455 virtual void apply(Viewer&);
456 virtual void apply(ViewMatrix&);
457 virtual void apply(LookAt&);
458 virtual void apply(LookDirection&);
459 virtual void apply(RelativeViewMatrix&);
460 virtual void apply(TrackingViewMatrix&);
461 virtual void apply(ProjectionMatrix&);
462 virtual void apply(Perspective&);
463 virtual void apply(Orthographic&);
464 virtual void apply(RelativeProjection&);
465 virtual void apply(EllipsoidPerspective&);
466
467 // general classes
468 virtual void apply(FrameStamp&);
469
470 bool is_compatible(const std::type_info& type) const noexcept override { return typeid(Visitor) == type || Object::is_compatible(type); }
471 };
472
473 // provide Value<>::accept() implementation
474 template<typename T>
475 void Value<T>::accept(Visitor& visitor) { visitor.apply(*this); }
476
477 // provide Array<>::accept() implementation
478 template<typename T>
479 void Array<T>::accept(Visitor& visitor) { visitor.apply(*this); }
480
481 // provide Array2D<>::accept() implementation
482 template<typename T>
483 void Array2D<T>::accept(Visitor& visitor) { visitor.apply(*this); }
484
485 // provide Array3D<>::accept() implementation
486 template<typename T>
487 void Array3D<T>::accept(Visitor& visitor) { visitor.apply(*this); }
488
489} // namespace vsg
vsg::AmbientLight
AmbientLight represents an ambient light source.
Definition AmbientLight.h:24
vsg::AnimationGroup
AnimationGroup node provides a list of child nodes and a list of animations to animate them.
Definition AnimationGroup.h:24
vsg::Animation
Animation class that controls a single animation made up of one more samplers.
Definition Animation.h:44
vsg::AnimationSampler
Base class for animation samplers that sample animation data and set associated scene graph objects.
Definition Animation.h:24
vsg::BeginQuery
BeginQuery command encapsulates vkCmdBeginQuery call and associated functionality.
Definition BeginQuery.h:22
vsg::Bin
Definition Bin.h:24
vsg::BindComputePipeline
BindComputePipeline state command encapsulates the vkCmdBindPipeline call for a ComputePipeline.
Definition ComputePipeline.h:65
vsg::BindDescriptorSet
Definition BindDescriptorSet.h:92
vsg::BindDescriptorSets
BindDescriptorSets state command encapsulates vkCmdBindDescriptorSets call and associated settings fo...
Definition BindDescriptorSet.h:25
vsg::BindGraphicsPipeline
BindGraphicsPipeline state command encapsulates the vkCmdBindPipeline call for a GraphicsPipeline.
Definition GraphicsPipeline.h:109
vsg::BindIndexBuffer
BindIndexBuffer command encapsulates vkCmdBindIndexBuffer call and associated settings.
Definition BindIndexBuffer.h:28
vsg::BindRayTracingPipeline
BindRayTracingPipeline state command encapsulates vkCmdBindPipeline for a RayTracingPipeline.
Definition RayTracingPipeline.h:85
vsg::BindVertexBuffers
BindVertexBuffers command encapsulates vkCmdBindVertexBuffers call and associated settings.
Definition BindVertexBuffers.h:25
vsg::BindViewDescriptorSets
Definition ViewDependentState.h:54
vsg::BufferInfo
BufferInfo encapsulates the settings that map to VkDescriptorBufferInfo.
Definition BufferInfo.h:27
vsg::ButtonPressEvent
ButtonPressEvent represents a button press event.
Definition PointerEvent.h:55
vsg::ButtonReleaseEvent
ButtonReleaseEvent represents a button release event.
Definition PointerEvent.h:72
vsg::Camera
Definition Camera.h:27
vsg::CameraSampler
Animation sampler for sampling position, rotation and scale keyframes for setting camera view and pro...
Definition CameraSampler.h:111
vsg::ClearAttachments
ClearAttachments command encapsulates vkCmdClearAttachments functionality and associated settings.
Definition ClearAttachments.h:22
vsg::ClearColorImage
ClearColorImage command encapsulates vkCmdClearColorImage functionality and associated settings.
Definition ClearImage.h:23
vsg::ClearDepthStencilImage
ClearDepthStencilImage command encapsulates vkCmdClearDepthStencilImage functionality and associated ...
Definition ClearImage.h:38
vsg::CloseWindowEvent
CloseWindowEvent represents a window close event.
Definition WindowEvent.h:87
vsg::ColorBlendState
ColorBlendState encapsulates VkPipelineColorBlendStateCreateInfo settings passed when setting up Grap...
Definition ColorBlendState.h:22
vsg::CommandBuffer
CommandBuffer encapsulates VkCommandBuffer.
Definition CommandBuffer.h:27
vsg::CommandGraph
CommandGraph is a group node that sits at the top of the scene graph and manages the recording of its...
Definition CommandGraph.h:28
vsg::Command
Command base class for encapsulating vkCmd* calls and associated settings.
Definition Command.h:23
vsg::Commands
Definition Commands.h:29
vsg::Compilable
Base class for encapsulating nodes that have Vulkan objects associated with them that will need compi...
Definition Compilable.h:23
vsg::ComputePipeline
ComputePipeline encapsulates compute VkPipeline and the VkComputePipelineCreateInfo settings used to ...
Definition ComputePipeline.h:24
vsg::ConfigureWindowEvent
ConfigureWindowEvent represents a window configure event - such as changes to the size of the window.
Definition WindowEvent.h:64
vsg::CoordinateFrame
CoordinateFrame provides support for astronomically large coordinates.
Definition CoordinateFrame.h:22
vsg::CopyOp
Definition Object.h:42
vsg::CopyQueryPoolResults
CopyQueryPoolResults commands encapsulates vkCmdCopyQueryPoolResults and associated settings.
Definition CopyQueryPoolResults.h:23
vsg::CullGroup
CullNode that enables view frustum culling on a list of children.
Definition CullGroup.h:23
vsg::CullNode
Definition CullNode.h:25
vsg::Data
Definition Data.h:110
vsg::DepthSorted
Definition DepthSorted.h:27
vsg::DepthStencilState
DepthStencilState encapsulates VkPipelineDepthStencilStateCreateInfo settings passed when setting up ...
Definition DepthStencilState.h:22
vsg::DescriptorBuffer
Definition DescriptorBuffer.h:24
vsg::Descriptor
Definition Descriptor.h:26
vsg::DescriptorImage
Definition DescriptorImage.h:24
vsg::DescriptorSet
DescriptorSet encapsulates VkDescriptorSet and VkDescriptorSetAllocateInfo settings used to describe ...
Definition DescriptorSet.h:26
vsg::DirectionalLight
DirectionalLight represents a directional light source - used for light sources that are treated as i...
Definition DirectionalLight.h:24
vsg::Draw
Draw command encapsulates vkCmdDraw call and associated settings.
Definition Draw.h:24
vsg::DrawIndexed
DrawIndexed command encapsulates vkCmdDrawIndexed call and associated settings.
Definition DrawIndexed.h:24
vsg::DrawMeshTasks
Definition DrawMeshTasks.h:22
vsg::DrawMeshTasksIndirectCount
DrawMeshTasksIndirectCount command encapsulates vkCmdDrawMeshTasksIndirectCountEXT call and associate...
Definition DrawMeshTasksIndirectCount.h:23
vsg::DrawMeshTasksIndirect
DrawMeshTasksIndirect command encapsulates vkCmdDrawMeshTasksIndirectEXT call and associated paramete...
Definition DrawMeshTasksIndirect.h:23
vsg::DynamicState
DynamicState encapsulates VkPipelineDynamicStateCreateInfo settings passed when setting up GraphicsPi...
Definition DynamicState.h:22
vsg::EllipsoidPerspective
Definition ProjectionMatrix.h:190
vsg::EndQuery
encapsulation of vkCmdEndQuery
Definition EndQuery.h:22
vsg::ExposeWindowEvent
ExposeWindowEvent represents a window expose event.
Definition WindowEvent.h:41
vsg::External
Definition External.h:31
vsg::FocusInEvent
FocusInEvent represents a window acquiring focus event.
Definition WindowEvent.h:98
vsg::FocusOutEvent
FocusOutEvent represents a window losing focus event.
Definition WindowEvent.h:109
vsg::FrameEvent
Definition ApplicationEvent.h:37
vsg::FrameStamp
FrameStamp represents the time and frame count of a specific frame.
Definition FrameStamp.h:22
vsg::Geometry
Definition Geometry.h:30
vsg::GraphicsPipeline
GraphicsPipeline encapsulates graphics VkPipeline and the VkGraphicsPipelineCreateInfo settings used ...
Definition GraphicsPipeline.h:56
vsg::GraphicsPipelineState
Definition GraphicsPipeline.h:29
vsg::Group
Group node provides a list of children.
Definition Group.h:24
vsg::Image
Image class encapsulates VkImage and VkImageCreateInfo settings used to set it up.
Definition Image.h:25
vsg::ImageInfo
ImageInfo class provides the VkDescriptorImageInfo settings used when setting up vsg::/vkDescriptorIm...
Definition ImageInfo.h:23
vsg::ImageView
ImageView class encapsulates VkImageView and VkImageViewCreateInfo settings used to set it up.
Definition ImageView.h:25
vsg::InputAssemblyState
InputAssemblyState encapsulates VkPipelineInputAssemblyStateCreateInfo settings passed when setting u...
Definition InputAssemblyState.h:22
vsg::Instrumentation
base class for Instrumentation implentations
Definition Instrumentation.h:51
vsg::InstrumentationNode
InstrumentationNode enables instrumentation of a subgraph.
Definition InstrumentationNode.h:24
vsg::Joint
Definition Joint.h:22
vsg::JointSampler
Animation sampler for acumulating vsg::Joint hierarchies and assigned accumulated transform matrices ...
Definition JointSampler.h:23
vsg::KeyEvent
KeyEvent is a base class for key events.
Definition KeyEvent.h:286
vsg::KeyPressEvent
KeyPressEvent represents a key press event.
Definition KeyEvent.h:309
vsg::KeyReleaseEvent
KeyReleaseEvent represents a key release event.
Definition KeyEvent.h:320
vsg::LOD
Definition LOD.h:33
vsg::Layer
Layer node is used to control which bin to place the subgraph in and what sort value to assign.
Definition Layer.h:23
vsg::Light
Definition Light.h:26
vsg::LookAt
LookAt is a ViewMatrix that implements the gluLookAt model for specifying the view matrix.
Definition ViewMatrix.h:53
vsg::LookDirection
LookDirection is a ViewMatrix that uses a position and rotation to set the view matrix.
Definition ViewMatrix.h:107
vsg::MatrixTransform
Definition MatrixTransform.h:24
vsg::MorphSampler
Animation sampler for morphing geometry, implementation not yet completed.
Definition MorphSampler.h:48
vsg::MoveEvent
MoveEvent represents a pointer move event.
Definition PointerEvent.h:89
vsg::MultisampleState
MultisampleState encapsulates VkPipelineMultisampleStateCreateInfo settings passed when setting up Gr...
Definition MultisampleState.h:22
vsg::Node
Definition Node.h:24
vsg::Objects
Simple container class that has a list of vsg::Object as children.
Definition Objects.h:25
vsg::Orthographic
Orthographic is a ProjectionMatrix that implements the glOrtho model for setting the projection matri...
Definition ProjectionMatrix.h:102
vsg::PagedLOD
Definition PagedLOD.h:36
vsg::Perspective
Perspective is a ProjectionMatrix that implements the gluPerspective model for setting the projection...
Definition ProjectionMatrix.h:50
vsg::PointLight
PointLight represents a local point light source where all light radiants event from the light positi...
Definition PointLight.h:24
vsg::PointerEvent
PointerEvent is a base class for mouse pointer events.
Definition PointerEvent.h:34
vsg::ProjectionMatrix
ProjectionMatrix is a base class for specifying the Camera projection matrix and its inverse.
Definition ProjectionMatrix.h:24
vsg::QuadGroup
Definition QuadGroup.h:29
vsg::QueryPool
QueryPool encapsulates the VkQueryPool and the VkQueryPoolCreateInfo settings used to set it up.
Definition QueryPool.h:23
vsg::RasterizationState
RasterizationState encapsulates VkPipelineRasterizationStateCreateInfo settings passed when setting u...
Definition RasterizationState.h:22
vsg::RayTracingPipeline
Definition RayTracingPipeline.h:26
vsg::RegionOfInterest
RegionOfInterest node is inform applications/algorithms extents that should take account of.
Definition RegionOfInterest.h:23
vsg::RelativeProjection
RelativeProjection is a ProjectionMatrix that decorates another ProjectionMatrix and pre-multiplies i...
Definition ProjectionMatrix.h:162
vsg::RelativeViewMatrix
RelativeViewMatrix is a ViewMatrix that decorates another ViewMatrix and pre-multiplies its transform...
Definition ViewMatrix.h:135
vsg::RenderGraph
Definition RenderGraph.h:28
vsg::RenderPass
RenderPass encapsulation of VkRenderPass.
Definition RenderPass.h:86
vsg::ResetQueryPool
ResetQueryPool command encapsulates vkCmdResetQueryPool functionality.
Definition ResetQueryPool.h:23
vsg::ResourceHints
ResourceHints provides settings that help preallocation of Vulkan resources and memory.
Definition ResourceHints.h:29
vsg::ScrollWheelEvent
ScrollWheelEvent represents a scroll wheel event.
Definition ScrollWheelEvent.h:22
vsg::SecondaryCommandGraph
SecondaryCommandGraph is a specialization of CommandGraph that provides Vulkan secondary command buff...
Definition SecondaryCommandGraph.h:25
vsg::ShaderCompileSettings
Definition ShaderModule.h:28
vsg::ShaderStage
ShaderStage encapsulates VkPipelineShaderStageCreateInfo settings passed when setting up GraphicsPipe...
Definition ShaderStage.h:24
vsg::SpotLight
SpotLight represents a local point light source whose intensity varies as a spot light.
Definition SpotLight.h:24
vsg::StateCommand
Definition StateCommand.h:24
vsg::StateGroup
Definition StateGroup.h:32
vsg::StateSwitch
Definition StateSwitch.h:22
vsg::Switch
Switch node for toggling on/off recording of children.
Definition Switch.h:25
vsg::TerminateEvent
TerminateEvent represents an application termination event.
Definition ApplicationEvent.h:24
vsg::TessellationState
TessellationState encapsulates VkPipelineTessellationStateCreateInfo settings passed when setting up ...
Definition TessellationState.h:22
vsg::TextGroup
Definition TextGroup.h:27
vsg::Text
Definition Text.h:30
vsg::TextLayout
Definition TextLayout.h:35
vsg::TextTechnique
Definition TextTechnique.h:25
vsg::TouchDownEvent
TouchDownEvent represents a touch down event.
Definition TouchEvent.h:45
vsg::TouchEvent
TouchEvent is a base class for touch events.
Definition TouchEvent.h:24
vsg::TouchMoveEvent
TouchMoveEvent represents a touch move event.
Definition TouchEvent.h:67
vsg::TouchUpEvent
TouchUpEvent represents a touch up event.
Definition TouchEvent.h:56
vsg::TrackingViewMatrix
Definition ViewMatrix.h:155
vsg::Transform
Transform node is a pure virtual base class for positioning/scaling/rotating subgraphs.
Definition Transform.h:22
vsg::TransformSampler
Animation sampler for sampling position, rotation and scale keyframes for setting transforms/joints.
Definition TransformSampler.h:70
vsg::UIEvent
UIEvent is a base class for user interface events.
Definition UIEvent.h:28
vsg::VertexDraw
Definition VertexDraw.h:25
vsg::VertexIndexDraw
Definition VertexIndexDraw.h:25
vsg::VertexInputState
VertexInputState encapsulates VkPipelineVertexInputStateCreateInfo settings passed when setting up Gr...
Definition VertexInputState.h:22
vsg::View
View is a Group class that pairs a Camera that defines the view with a subgraph that defines the scen...
Definition View.h:36
vsg::ViewMatrix
ViewMatrix is a base class for specifying the Camera view matrix and its inverse.
Definition ViewMatrix.h:23
vsg::Viewer
Definition Viewer.h:33
vsg::ViewportState
ViewportState encapsulates VkPipelineViewportStateCreateInfo settings passed when setting up Graphics...
Definition ViewportState.h:24
vsg::Visitor
Definition Visitor.h:175
vsg::WindowEvent
WindowEvent is the base class for events related to a window.
Definition WindowEvent.h:24
vsg::WriteTimestamp
WriteTimestamp command encapsulates vkCmdWriteTimestamp call and settings passed to it.
Definition WriteTimestamp.h:22