VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtScalingAlgorithm.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2014 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
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 
29  {
30  public:
32  virtual ~DtScalingAlgorithm();
33 
47  virtual double calculateScale( const DtOsgCullVisitorParameters& info,
48  const osg::Camera& camera, const osg::Vec3d& position,
49  double modelRadius, DtUniqueID objectElementId ) = 0;
50  };
51 
55  {
56  public:
58  virtual ~DtXRScalingAlgorithm();
59 
76  virtual double calculateScale( const DtOsgCullVisitorParameters& info,
77  const osg::Camera& camera, const osg::Vec3d& position,
78  double modelRadius, DtUniqueID objectElementId );
79  };
80 
84  {
85  public:
88 
90  virtual ~DtScalingAlgorithmCreator();
91 
95  static DtScalingAlgorithmCreator& instance( DtDe& de );
96 
101  static void registerInstance( DtDe& de,
102  DtScalingAlgorithmCreator* instance );
103 
106  virtual DtScalingAlgorithm* create();
107  };
108 }
109 
110 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)