VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtAttachedCylinderModelInstance.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtAttachedCylinderModelInstance.h,v $ $Revision: 1.0 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvOsg/vrvOsg.h>
16 
17 namespace makVrv
18 {
23  {
24  public:
25 
28 
31 
33  virtual void setStartPoint( const osg::Vec3& position );
34 
36  virtual void setEndPoint( const osg::Vec3& position );
37 
39  virtual void setVisible(bool isVisible);
40 
41  protected:
42 
43  virtual void updateTransform();
44 
45  void spanTwoPoints( osg::Matrix& cylinderTransform );
46 
47  protected:
48 
49  osg::Vec3 myStartPoint; // The center of one endcap
50  osg::Vec3 myEndPoint; // The center of the other endcap
51 
52  };
53 }

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)