VR-Forces 4.0.4 Class Documentation
include/vrvOsg/DtOsgProjectedTextModel.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtOsgProjectedTextModel.h,v $ $Revision: 1.13 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #ifndef DtOsgAttachableProjectedTextModel_H_
00014 #define DtOsgAttachableProjectedTextModel_H_
00015 
00016 #include <vrvOsg/vrvOsg.h>    
00017 #include <vrvCore/DtProjectedTextModel.h>
00018 #include <vrvCore/DtUniqueID.h>
00019 #include <matrix/vlVector.h>
00020 
00021 namespace osg
00022 {
00023    class Group;
00024 }
00025 
00026 namespace makVrv
00027 {
00028    class DtDe;
00029    class DtProjectedTextModelInstance;
00030    class DtOsgSceneConnector;
00031 
00035    class DT_DLL_VRVOSG DtOsgProjectedTextModel
00036       : public DtProjectedTextModel
00037    {
00038    public:
00039       DtOsgProjectedTextModel(DtDe& de, DtUniqueID& id);
00040 
00041       virtual ~DtOsgProjectedTextModel();
00042          
00043       //@name Distributed Interface
00045       virtual void setPosition( int vtx, const DtVector& position );
00046       virtual void setOrientation( int vtx, const DtTaitBryan& orientation );
00047 
00048       virtual void setColor( const DtVector& rgbColor );
00049       virtual void setFontName( const std::string& fontName );
00050       virtual void setFontSize( double size );
00051       virtual void setText( const std::string& text );
00052       virtual void setVisible(bool isVisible);
00053       virtual void setSolid(bool solid);
00055 
00056    protected:
00057       
00058       //@name Local Interface
00060       virtual void addToScene( const DtUniqueID& sceneObjectId, int modelSet,
00061          int visualizerType );
00062       virtual void removeFromScene();
00064 
00065    protected:
00066       virtual void createModelInstance();
00067       
00068    protected:
00069       // casting avoidance
00070       DtProjectedTextModelInstance* myTextInstance;
00071       DtOsgSceneConnector* mySceneConnector;
00072    };
00073 }
00074 
00075 #endif
00076 

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)