VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtHeightMapDrawable.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 
12 #include <vrvOsg/vrvOsg.h>
13 
15 
16 #include <osg/Drawable>
17 
18 namespace makVrv
19 {
20  class DtHeightMapManager;
21  class DtHeightMapSuperManager;
22 
25 
28 
30  template <>
31  inline const char* creatorTypeName<DtHeightMapDrawable>(void) { return "DtHeightMapDrawableCreator"; }
32 
35  class DT_DLL_VRVOSG DtHeightMapDrawable : public osg::Drawable
36  {
37  public:
40 
42  virtual ~DtHeightMapDrawable();
43 
44  protected:
47 
48  private:
50  DtHeightMapDrawable() = delete;
51 
53  DtHeightMapDrawable(const DtHeightMapDrawable &other) = delete;
54 
56  DtHeightMapDrawable &operator=(const DtHeightMapDrawable &other) = delete;
57 
58  public:
60  virtual void drawImplementation(osg::RenderInfo& renderInfo) const override;
61  protected:
63 
65 
66  typedef std::map< osg::GraphicsContext*, void* > ContextToHandleMap;
67  };
68 }
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:22
std::map< osg::GraphicsContext *, void * > ContextToHandleMap
Definition: DtHeightMapDrawable.h:66
DtHeightMapSuperManager * myHeightMapSuperManager
Definition: DtHeightMapDrawable.h:64
makVrv::DtDe & myDe
Definition: DtHeightMapDrawable.h:62
const char * creatorTypeName< DtHeightMapDrawable >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtHeightMapDrawable.h:31
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:72
DtVirtualBaseClassCreator< DtHeightMapDrawable, DtHeightMapSuperManager * > DtHeightMapDrawableCreator
creator
Definition: DtHeightMapDrawable.h:24
An OSG Drawable representing a terrain heightmap. /ingroup vrvOsg.
Definition: DtHeightMapDrawable.h:35
friend DtHeightMapDrawableCreator
only creator can create
Definition: DtHeightMapDrawable.h:39
A class to manage multiple DtHeightMapManager(s) (one per camera)
Definition: DtHeightMapSuperManager.h:55

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)