VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIndirectBuildingsVisitor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
15 
16 namespace makVrv
17 {
20  class DT_DLL_VRVOSGEARTH DtIndirectBuildingsVisitor : public osg::NodeVisitor
21  {
22  public:
25 
27  virtual ~DtIndirectBuildingsVisitor();
28 
29  private:
32 
34  DtIndirectBuildingsVisitor& operator=(const DtIndirectBuildingsVisitor& rhs) = delete;
35 
36  public:
37  virtual void apply(DtIndirectIndexedMultiSwitch& node);
38  virtual void apply(osg::Geode& node);
39  virtual void apply(osg::Geometry& node);
40 
42  virtual void apply(osg::Node& node);
43 
44  protected:
45  // Precess the vertices in a merged mesh to determine which vertices belong to which feature.
46  void ProcessVertices(osg::Geometry& geometry, DtIndirectIndexedMultiSwitch::DequeFeatureData& featureStack);
47 
48  // Process the indices in a merged mesh to determine which indices belong to which feature.
49  void ProcessIndices(osg::Geometry& geometry, DtIndirectIndexedMultiSwitch::DequeFeatureData& featureStack);
50 
51  private:
54 
56  DtIndirectIndexedMultiSwitch* myCurrentIndexedMultiSwitch = nullptr;
57  };
58 }
Definition: featureContext.h:37
#define DT_DLL_VRVOSGEARTH
Definition: vrvOsgEarth.h:21
This node allows for the indirecting system to index into a geometry object with the intent to have a...
Definition: DtIndirectIndexedMultiSwitch.h:27
Contains makVrv::DtIndirectMetadataNode class.
osg::ref_ptr< DtIndirectMetadataNode > myIndirectMetadataNode
The DtIndirectMetadataNode.
Definition: DtIndirectBuildingsVisitor.h:53
Contains makVrv::DtIndirectIndexedMultiSwitch class.
class used to process merged geometry objects so that a proper structure can be setup to facilitate u...
Definition: DtIndirectBuildingsVisitor.h:20
std::deque< FeatureData > DequeFeatureData
Definition: DtIndirectIndexedMultiSwitch.h:39
Contains DLL export macros.

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)