VR-Forces 4.0.4 Class Documentation
include/vrvCore/DtWindowTextInstance.h
Go to the documentation of this file.
00001 /****************************************************************************** 
00002 ** Copyright (c) 2010 MAK Technologies, Inc. 
00003 ** All rights reserved. 
00004 ******************************************************************************/ 
00005 /****************************************************************************** 
00006 ** $RCSfile: DtWindowTextInstance.h,v $ $Revision: 1.0 $ $State: Exp $ 
00007 ******************************************************************************/ 
00008  
00012  
00013 #ifndef DtWindowTextInstance_H_ 
00014 #define DtWindowTextInstance_H_ 
00015  
00016 #include <vrvCore/vrvCore.h>
00017 #include <vrvCore/DtSetVisibilityInterface.h>
00018 #include <vrvCore/DtWindowText.h>
00019 
00020 #include <vector>
00021  
00022 namespace makVrv 
00023 {
00027    class DT_DLL_VRVCORE DtWindowTextInstance : public DtSetVisibilityInterface
00028    {
00029    public:
00031       struct Vertex
00032       {
00033          double x;
00034          double y;
00035       };
00036 
00037       typedef std::vector<Vertex> VertexList;
00038 
00040       virtual ~DtWindowTextInstance();
00041 
00043       virtual void setTopLeftCorner(float x, float y) = 0;
00044 
00046       virtual void setVisible(bool isVisible) = 0;
00047 
00049       virtual void setColor(float r,float g,float b,float a) = 0;
00050 
00052       virtual void setText(const std::string& textString) = 0;
00053 
00055       virtual void setFont(const std::string& fontFile, float sizeInPoints) = 0;
00056 
00058       virtual void setTextBoxWidth(unsigned int widthInPixels) = 0;
00059 
00061       virtual void setAlignment(DtWindowText::TextAlignment alignment) = 0;
00062    }; 
00063 } 
00064  
00065 #endif 

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)