VR-Forces 4.0.4 Class Documentation
include/vrvOsg/DtOsgOverlaySegmentedLineModel.h
Go to the documentation of this file.
00001 // /****************************************************************************** 
00002 // ** Copyright (c) 2012 MAK Technologies, Inc. 
00003 // ** All rights reserved. 
00004 // ******************************************************************************/ 
00005 
00009 
00010 #pragma once
00011 
00012 #include <vrvOsg/vrvOsg.h> 
00013 #include <vrvCore/DtOverlaySegmentedLineModel.h>
00014 
00015 namespace makVrv
00016 {
00020    class DT_DLL_VRVOSG DtOsgOverlaySegmentedLineModel : public DtOverlaySegmentedLineModel
00021    {
00022    public:
00024       DtOsgOverlaySegmentedLineModel(DtDe& de, DtUniqueID id);
00025 
00027       ~DtOsgOverlaySegmentedLineModel();
00028       
00030       virtual void setPosition( int vtx, const DtVector& position );
00031 
00033       virtual void removePosition( int vtx );
00034 
00036       virtual void setOrientation( int vtx, const DtTaitBryan& orientation );
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 pattern, int repeatFactor );
00046 
00049       virtual void setStyleSegments(const std::vector<double>& segmentPercentages);
00050 
00052       virtual void setSegmentColor(unsigned int segmentIndex,
00053          float r, float g, float b, float a);
00054 
00056       virtual void setSegmentLightningStyle(unsigned int segmentIndex,
00057          bool enableLightningStyle);
00058 
00060       virtual void setSegmentStartArrow(unsigned int segmentIndex,
00061          bool enableArrow);
00062 
00064       virtual void setSegmentEndArrow(unsigned int segmentIndex,
00065          bool enableArrow);
00066 
00069       virtual void setSegmentStipplePattern(unsigned int segmentIndex,
00070          unsigned int stipplePattern, int repeatFactor);
00071 
00073       virtual void setSegmentWidth(unsigned int segmentIndex,
00074          double width);
00075 
00078       virtual void setSegmentStartColor( unsigned int segmentIndex, float r, 
00079          float g, float b, float a );
00080 
00083       virtual void setSegmentEndColor( unsigned int segmentIndex, float r, 
00084          float g, float b, float a );
00085 
00087       virtual void setEventsEnabled( bool );
00088 
00090       virtual void setEventWidth(float width);
00091 
00092       // @name Inherited DtModel methods
00093       // @{
00094 
00096       virtual void addToScene( const DtUniqueID& sceneObjectId, int modelSet, int visualizerType );
00097 
00099       virtual void removeFromScene();
00100 
00102       virtual void setModelDefinition( const std::string& str );
00103 
00105       virtual void setVisible( bool isVisible );
00106 
00108       virtual void setSolid( bool );
00109 
00110       // @}
00111 
00113       virtual void update();
00114 
00116       virtual void needsUpdate();
00117 
00118    protected:
00119       DtUniqueID mySceneObjectId;
00120       bool myEventsEnabled;
00121       float myEventWidth;
00122       bool myConnectedToPostUpdate;
00123    };
00124 }
00125 

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)