VR-Forces 4.0.4 Class Documentation
include/vrvOsg/DtOsgPolygonModel.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2009 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtOsgPolygonModel.h,v $ $Revision: 1.0 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #pragma once
00014 #include <vrvOsg/vrvOsg.h>    
00015 #include <vrvCore/DtPolygonModel.h>
00016 #include <matrix/vlVector.h>
00017 #include <osg/MatrixTransform>
00018 
00019 namespace osg
00020 {
00021    class Group;
00022 }
00023 
00024 namespace makVrv
00025 {
00026    class DtDe;
00027    class DtOsgSceneConnector;
00028 
00031    class DT_DLL_VRVOSG DtOsgPolygonModel : public DtPolygonModel
00032    {
00033    public:
00034       DtOsgPolygonModel(DtDe& de, DtUniqueID& id);
00035 
00036       virtual ~DtOsgPolygonModel();
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 
00049       virtual void setPoint(int vtx, const DtVector& position);
00050 
00052       virtual void setOrigin(const DtVector&);
00053 
00055       virtual void setOrientation( int vtx, const DtTaitBryan& orientation );
00056 
00058       virtual void setTexturePath(const std::string& texturePath);
00059 
00061       virtual void setNumTextureTiles(double numTiles);
00062 
00064       virtual void setVisible(bool isVisible);
00065 
00067       virtual void setSolid(bool solid);
00068 
00070       virtual void addPoint(const DtVector& point,int index);
00071 
00073       virtual void setLockUpdates(bool lock);
00074 
00076       virtual void setPickable(bool enabled);
00077 
00079       virtual void removePoint(int index);
00080 
00082       virtual void removePosition(int index);
00083 
00085       virtual void setStipplePattern(unsigned int stipplePattern);
00086 
00088       virtual void setWidth(float width);
00089 
00091 
00092       //@name Local Interface
00094 
00096       virtual void addToScene( const DtUniqueID& sceneObjectId, int modelSet,
00097          int visualizerType );
00098 
00100       virtual void removeFromScene();
00102 
00106       virtual void setUseDynamicOrigin(bool);
00107 
00108    protected:
00109       DtOsgSceneConnector* mySceneConnector;
00110       DtVector myOrigin;
00111       bool myUseDynamicOrigin;
00112    };
00113 }

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)