VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtModelScaler.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2019 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include <vrvOsg/vrvOsg.h>
14 
15 #include <vrvCore/DtUniqueID.h>
17 
18 #include <osg/Referenced>
19 #include <osg/Node>
20 #include <osg/Camera>
21 
22 namespace makVrv
23 {
24  class DtOsgCullVisitorParameters;
25  class DtScalingAlgorithm;
26 
32  class DT_DLL_VRVOSG DtModelScaler : public osg::Referenced
33  {
34  public:
38  DtModelScaler(DtDe& de, DtScalingAlgorithm* scalingAlgorithm);
39 
54  virtual double calculateScale( const DtOsgCullVisitorParameters& info,
55  const osg::Camera& camera, const osg::Vec3d& position,
56  double modelRadius, DtUniqueID objectElementId ) const;
57 
62  double calculateScale( const DtOsgCullVisitorParameters& info,
63  const osg::Camera& camera, const osg::Node& node ) const;
64 
66  const DtScalingAlgorithm& scalingAlgorithm() const;
67 
68  protected:
71  virtual ~DtModelScaler();
72 
73  private:
74  // Unimplemented Default CTOR
75  DtModelScaler();
76 
77  // Unimplemented Copy CTOR
78  DtModelScaler(const DtModelScaler& orig);
79 
80  // Unimplemented Assignment Operator
81  DtModelScaler& operator=(const DtModelScaler& rhs);
82 
83  protected:
86  };
87 }
DtDe & myDe
Definition: DtModelScaler.h:85
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
The DtModelScaler prepares the data from the osg camera, osg node, and cull visitor parameters and th...
Definition: DtModelScaler.h:32
DtScalingAlgorithm * myAlgorithm
Definition: DtModelScaler.h:84
Contains makVrv::DtVirtualBaseClass class.
Provides an algorithm for scaling objects in the scene. It provides a container for the scale factor ...
Definition: DtScalingAlgorithm.h:35
The osg cull vistor parameters class provides additional culling and intersector parameters for choos...
Definition: DtOsgCullVisitorParameters.h:42
Contains makVrv::DtUniqueID type.
Contains DLL export macros.
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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)