VR-Forces 4.0.4 Class Documentation
include/vrvOsg/DtOsgOverlayRectangleModel.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2010 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtOsgOverlayRectangleModel.h,v $ $Revision: 1.0 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #pragma once
00014 
00015 #include <vrvOsg/vrvOsg.h>    
00016 #include <vrvCore/DtOverlayRectangleModel.h>
00017 #include <vrvCore/DtUniqueID.h>
00018 
00019 #include <osg/Vec3>
00020 
00021 #include <matrix/vlDcm.h>
00022 
00023 namespace makVrv
00024 {
00025    class DtDe;
00026 
00029    class DT_DLL_VRVOSG DtOsgOverlayRectangleModel : public DtOverlayRectangleModel
00030    {
00031    public:
00033       DtOsgOverlayRectangleModel(DtDe& de, DtUniqueID& id);
00034 
00036       virtual ~DtOsgOverlayRectangleModel();
00037 
00038       //@name Distributed Interface
00040 
00042       virtual void setColor(float r,float g,float b,float a);
00043 
00045       virtual void setPosition( int vtx, const DtVector& position );
00046 
00048       virtual void setPoint(int vtx, const DtVector& position);
00049 
00051       virtual void set2dOffset(int index, float x, float y);
00052 
00054       virtual void setOrientation( const DtTaitBryan& orientation );
00055       virtual void setOrientation( int vtx, const DtTaitBryan& orientation );
00056 
00059       virtual void set3dDirection2dLength(int index, float x, float y, float z, 
00060          float len);
00061 
00063       virtual void setTexturePath(const std::string& texturePath);
00064 
00066       virtual void setNumTextureTiles(double numTiles);
00067 
00069       virtual void setSolid(bool solid);
00070 
00072       virtual void setLockUpdates(bool lock);
00073 
00075       virtual void setPickable(bool enabled);
00076 
00078       virtual void setStipplePattern(unsigned int stipplePattern);
00079 
00081       virtual void setWidth(float width);
00082 
00084       virtual void setEventWidth(float width);
00085 
00087       virtual void setEventsEnabled(bool);
00088 
00090       virtual void setDimensions(double width, double length, double altitudeOffset);
00091 
00093       virtual void resetSpatial();
00094 
00095       virtual void setOrigin(const DtVector&);
00096 
00098 
00099       //@name Local Interface
00101 
00103       virtual void addToScene( const DtUniqueID& sceneObjectId, int modelSet,
00104          int visualizerType );
00105 
00107       virtual void removeFromScene();
00108 
00110       virtual void setModelDefinition( const std::string& str );
00112 
00114       virtual DtVector rotateToDatabase(const DtVector& pos, const DtVector& origin);
00115 
00119       virtual void setUseDynamicOrigin(bool);
00120 
00121    protected:
00122       DtUniqueID myParentId;
00123       DtDcm myOrientationDcm;
00124       DtVector myDimensions;
00125       DtVector myOrigin;
00126 
00127       bool myUseDynamicOrigin;
00128    };
00129 }

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)