VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtScalingAlgorithm.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2019 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 #include <vrvCore/DtUniqueID.h>
16 
17 #include <osg/Referenced>
18 #include <osg/Node>
19 #include <osg/Camera>
20 
21 #include <string>
22 
23 namespace makVrv
24 {
25  class DtOsgCullVisitorParameters;
26  class DtUnicode;
27 
36  {
37  public:
40 
42  virtual ~DtScalingAlgorithm();
43 
58  virtual double calculateScale( const DtOsgCullVisitorParameters& info,
59  const osg::Camera& camera, const osg::Vec3d& position,
60  double modelRadius, DtUniqueID objectElementId ) const = 0;
61 
63  virtual double scaleFactor() const;
64 
67  virtual void setScaleFactor(double maxScale);
68 
70  virtual double maxScaleFactor() const;
71 
74  virtual void setMaxScaleFactor(double maxScale);
75 
76  private:
78  DtScalingAlgorithm& operator=(const DtScalingAlgorithm& rhs);
79 
80  // Unimplemented Copy CTOR
82 
83  protected:
84  double myScaleFactor;
86  };
87 }
88 
89 
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
double myScaleFactor
Definition: DtScalingAlgorithm.h:84
Contains makVrv::DtObserverObject 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:43
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
Contains makVrv::DtUniqueID type.
Contains DLL export macros.
double myMaxScaleFactor
Definition: DtScalingAlgorithm.h:85

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)