VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTritonGroup.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvTriton/vrvTriton.h>
13 
14 #include <osg/Camera>
15 #include <osg/Group>
16 
17 namespace osg { class NodeVisitor; }
18 
19 namespace makVrv
20 {
21  class DtDe;
22  class DtOsgCullVisitorParameters;
23 
26  class DT_DLL_VRVTRITON DtTritonGroup : public osg::Group
27  {
28  public:
30  {
34  TraverseBelowDisplayRange
35  };
37  DtTritonGroup(DtDe& de, double displayRange);
38 
40  DtTritonGroup(const DtTritonGroup& obj,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
41 
43  virtual void traverse(osg::NodeVisitor& nv);
44 
46  virtual void setElevationRange(double newRange);
47 
49  virtual void setTraversalState( TraversalState state );
50 
51  protected:
52  virtual void doDynamicWaterVisibility( double altitude,
53  const DtOsgCullVisitorParameters* cullParams ) const;
54 
55  virtual void resetFogState(osg::ref_ptr<osg::Camera> camera);
56 
57  virtual void setReflectionState(bool enabled);
58 
59  protected:
64  };
65 }
LOD node that switches by observer elevation ranges.
Definition: DtTritonGroup.h:26
bool myFirstTraversalFlag
Definition: DtTritonGroup.h:63
DtDe & myDe
Definition: DtTritonGroup.h:62
double myDisplayRange
Definition: DtTritonGroup.h:60
Contains DLL export macros.
TraversalState
Definition: DtTritonGroup.h:29
#define DT_DLL_VRVTRITON
Definition: vrvTriton.h:19
Definition: DtTritonGroup.h:31
The osg cull vistor parameters class provides additional culling and intersector parameters for choos...
Definition: DtOsgCullVisitorParameters.h:42
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
TraversalState myTraversalState
Definition: DtTritonGroup.h:61
Definition: DtTritonGroup.h:32

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)