VR-Forces 4.0.4 Class Documentation
include/vrvOsg/DtOsgDecalModel.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 
00014 #include <vrvCore/DtDecalModel.h>
00015 
00016 #include <matrix/vlVector.h>
00017 #include <osg/Vec4>
00018 
00019 namespace makVrv
00020 {
00021 
00022    class DtOsgSceneConnector;
00023    class DtDecalModelInstance;
00024 
00027    class DT_DLL_VRVOSG DtOsgDecalModel : public DtDecalModel
00028    {
00029    public:
00030 
00032       DtOsgDecalModel( DtDe& de, DtUniqueID id );
00033 
00035       virtual ~DtOsgDecalModel();
00036 
00038       virtual void setModelDefinition( const std::string& str );
00039 
00041       virtual void setModelInstance( DtModelInstance* modelInstance );
00042 
00045       virtual std::string className() const;
00046 
00048       virtual void setOrientation( int vtx, const DtTaitBryan& ori );
00049 
00051       virtual void setPosition( int vtx, const DtVector& pos );
00052 
00055       virtual void addToScene( const DtUniqueID& id, int modelSet,
00056          int visualizerType );
00057 
00059       virtual void removeFromScene();
00060 
00062       virtual void setOcclusionEnabled( bool enabled );
00063 
00064       virtual void setColor( float r, float g, float b, float a );
00065 
00066       virtual void initializeModelInstance();
00067 
00069       virtual void setVisible( bool isVisible );
00070 
00072       virtual void setSolid( bool solid );
00073 
00075       virtual void update();
00076 
00077    protected:
00078 
00079       DtOsgSceneConnector* mySceneConnector;
00080       DtDecalModelInstance* myDecalModelCast;
00081       bool myOcclusionEnabled;
00082       bool myColorSet;
00083       osg::Vec4 myColor;
00084 
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)