VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDrawModelInstance.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtDrawModelInstance.h,v $ $Revision: 1.10 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
15 #include <osg/Group>
16 #include <osg/Geode>
17 #include <osg/Geometry>
18 #include <osgText/Text>
19 
20 namespace makVrv
21 {
22  class DtDe;
23 
27  {
28  public:
31 
33  virtual ~DtDrawModelInstance();
34 
37  virtual void addToConnector( DtOsgSceneConnector* connector );
38 
41  virtual bool removeFromConnector( DtOsgSceneConnector* connector );
42 
44  virtual void drawLine(const osg::Vec4& color, const double lineWidth);
45 
46  virtual void setPosition( int vtx, const DtVector& position );
47 
49  virtual void setVisible (bool isVisible) {}
50 
51  protected:
52 
54  void createText( const std::string& fontName, const osg::Vec4& color, double size );
55 
57  virtual void resetGeode();
58 
59  protected:
60 
61  osg::ref_ptr<osg::Group> myGroup;
62  osg::ref_ptr<osg::Geode> myShapeGeode;
63  osg::ref_ptr<osg::Geometry> myGeometry;
64  osg::ref_ptr<osg::Vec3Array> myPoints;
65 
66  };
67 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)