VR-Forces 4.0.4 Class Documentation
include/vrvOsg/DtOsgOverlayDirectionLineModel.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Copyright (c) 2012 MAK Technologies, Inc.
00003  * All rights reserved.
00004  *****************************************************************************/
00005 
00009 
00010 #include <vrvOsg/vrvOsg.h>
00011 #include <vrvCore/DtOverlayDirectionLineModel.h>
00012 
00013 
00014 namespace makVrv
00015 {
00016 
00019    class DT_DLL_VRVOSG DtOsgOverlayDirectionLineModel :
00020       public DtOverlayDirectionLineModel
00021    {
00022    public:
00024       DtOsgOverlayDirectionLineModel( DtDe& de, DtUniqueID id );
00025 
00027       virtual ~DtOsgOverlayDirectionLineModel();
00028 
00030       virtual void setPosition(int index, const DtVector& position);
00031 
00033       virtual void setDirection(int index, const DtVector& direction);
00034 
00036       virtual void setLength(int index, float length);
00037 
00039       virtual void setColor(float r, float g, float b, float a);
00040 
00042       virtual void setWidth(float width);
00043 
00045       virtual void setStipplePattern(unsigned int stipple, int repeatFactor);
00046 
00048       virtual void setEventsEnabled(bool);
00049 
00051       virtual void setPositionOffset(const DtVector&);
00053       virtual void setSolid( bool );
00054       // @}
00055 
00057       virtual void setVisible( bool isVisible );
00058 
00059    protected:
00060 
00061       // @name Inherited DtModel methods
00062       // @{
00063 
00065       virtual void addToScene( const DtUniqueID& sceneObjectId, int modelSet, int visualizerType );
00066 
00068       virtual void removeFromScene();
00069 
00071       virtual void setModelDefinition( const std::string& str );
00072 
00073       // @}
00074 
00076       virtual void needsUpdate();
00077 
00080       virtual void update();
00081 
00082    protected:
00083       DtUniqueID myParentId;
00084       bool myConnectedToPostUpdate;
00085    };
00086 }

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)