VR-Forces 4.0.4 Class Documentation
include/vrvOsg/DtOsgCylinderModel.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2009 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtOsgCylinderModel.h,v $ $Revision: 1.0 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #pragma once
00014 
00015 #include <vrvOsg/vrvOsg.h>    
00016 #include <vrvCore/DtCylinderModel.h>
00017 #include <vrvCore/DtUniqueID.h>
00018 
00019 #include <matrix/vlVector.h>
00020 
00021 #include <osg/MatrixTransform>
00022 
00023 namespace osg
00024 {
00025    class Group;
00026 }
00027 
00028 namespace makVrv
00029 {
00030    class DtDe;
00031    class DtOsgSceneConnector;
00032 
00035    class DT_DLL_VRVOSG DtOsgCylinderModel : public DtCylinderModel
00036    {
00037    public:
00038       DtOsgCylinderModel(DtDe& de, DtUniqueID& id);
00039 
00040       virtual ~DtOsgCylinderModel();
00041 
00042       //@name Distributed Interface
00044 
00046       virtual void setUseTwoPositions(bool twoPoints);
00047 
00049       virtual void setDimensions(float length, float width, float height);
00050 
00052       virtual void setColor(float r,float g,float b,float a);
00053 
00055       virtual void setPosition( int vtx, const DtVector& position );
00056 
00058       virtual void setOrientation( int vtx, const DtTaitBryan& orientation );
00059 
00061       virtual void setLightingEnabled( bool enabled );
00062 
00064       virtual void setVisible(bool isVisible);
00065 
00067       virtual void setSolid(bool solid);
00068 
00070 
00071       //@name Local Interface
00073 
00075       virtual void addToScene( const DtUniqueID& sceneObjectId, int modelSet,
00076          int visualizerType );
00077 
00079       virtual void removeFromScene();
00081 
00082    protected:
00083       DtOsgSceneConnector* mySceneConnector;
00084       bool myUseTwoPositions;
00085    };
00086 }
00087 

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)