VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtWeatherAreaDrawable.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <osg/Drawable>
13 
14 #include <vrvCore/DtDe.h>
15 
16 #include <vrvOsg/vrvOsg.h>
17 
19 
20 
21 namespace makVrv
22 {
23  // Forward declarations.
24  class DtWeatherAreaGroup;
25 
26 
30  class DT_DLL_VRVOSG DtWeatherAreaDrawable : public osg::Drawable
31  {
32  public:
33 
36  {
40  };
41 
44 
46  DtWeatherAreaDrawable(const DtWeatherAreaDrawable& orig, const osg::CopyOp& opr);
47 
49  virtual ~DtWeatherAreaDrawable();
50 
51  private:
52 
55 
58 
60  DtWeatherAreaDrawable &operator=(const DtWeatherAreaDrawable &other);
61 
62  public:
63 
65  virtual osg::Object* clone(const osg::CopyOp& copyop) const { return new DtWeatherAreaDrawable(*this, copyop); }
66  virtual osg::Object* cloneType() const { return NULL; }
67 
69  virtual void init();
70 
73  virtual void setSortBinType(DtWeatherAreaDrawable::SortBinType type);
74 
76  virtual const DtWeatherAreaDrawable::SortBinType sortBinType() const;
77 
79  virtual void drawImplementation(osg::RenderInfo& renderInfo) const;
80 
81  protected:
82 
86  };
87 
88 
91  {
92  public:
95 
98 
99  private:
104 
105  public:
107  virtual DtWeatherAreaDrawable* create(DtWeatherAreaGroup* weatherAreaGroup) const;
108 
111  static DtWeatherAreaDrawableCreator& instance(DtDe& de);
112 
114  static const std::string& theClassName();
115 
116  protected:
118  };
119 }
120 
121 
122 
DT_DLL_EXAMPLESCENEROOTPLUGIN void init(DtDe &anIG)
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
creator for DtWeatherAreaDrawable
Definition: DtWeatherAreaDrawable.h:90
virtual osg::Object * cloneType() const
Definition: DtWeatherAreaDrawable.h:66
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
SortBinType mySortBinType
Definition: DtWeatherAreaDrawable.h:85
DtDe & myDe
Definition: DtWeatherAreaDrawable.h:83
Definition: DtWeatherAreaDrawable.h:38
Contains makVrv::DtDe class.
A drawable used for drawing items related to weather areas. The class serves as a draw point entry an...
Definition: DtWeatherAreaDrawable.h:30
A group node which serves as a root for weather areas, patchy ground fog areas and effects...
Definition: DtWeatherAreaGroup.h:75
DtDe & myDe
Definition: DtWeatherAreaDrawable.h:117
Contains makVrv::DtVirtualBaseClass class.
virtual osg::Object * clone(const osg::CopyOp &copyop) const
required functions for derriving from osg::Drawable
Definition: DtWeatherAreaDrawable.h:65
SortBinType
brief Weather area drawable sort bin type enumerations.
Definition: DtWeatherAreaDrawable.h:35
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
Definition: DtWeatherAreaDrawable.h:39
DtWeatherAreaGroup * myWeatherAreaGroup
Definition: DtWeatherAreaDrawable.h:84
Definition: DtWeatherAreaDrawable.h:37

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)