VR-Forces 4.0.4 Class Documentation
include/vrvOsg/DtAttachedCylinderModelInstance.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2009 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtAttachedCylinderModelInstance.h,v $ $Revision: 1.0 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #pragma once
00014 #include <vrvOsg/vrvOsg.h>
00015 #include <vrvOsg/DtCylinderModelInstance.h>
00016 
00017 namespace makVrv
00018 {
00021    class DT_DLL_VRVOSG DtAttachedCylinderModelInstance 
00022       : public DtCylinderModelInstance
00023    {
00024    public:
00025 
00027       DtAttachedCylinderModelInstance(DtDe& de);
00028 
00030       virtual ~DtAttachedCylinderModelInstance();
00031 
00033       virtual void setStartPoint( const osg::Vec3& position );
00034 
00036       virtual void setEndPoint( const osg::Vec3& position );
00037 
00039       virtual void setVisible(bool isVisible);
00040 
00041    protected:
00042 
00043       virtual void updateTransform();
00044 
00045       void spanTwoPoints( osg::Matrix& cylinderTransform );
00046 
00047    protected:
00048 
00049       osg::Vec3 myStartPoint; // The center of one endcap
00050       osg::Vec3 myEndPoint; // The center of the other endcap
00051 
00052    };
00053 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)