VR-Vantage 1.4.1 API Class Documentation
DtAttribute.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2010 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtAttribute.h,v $ $Revision: 1.24 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #pragma once
00014 
00015 #include <vrvOsg/vrvOsg.h>
00016 #include <vrvCore/DtWidget.h>
00017 
00018 #include <boost/signals.hpp>
00019 
00020 namespace makVrv
00021 {
00024    class DT_DLL_VRVOSG DtAttribute
00025    {
00026    public:
00027 
00029       DtAttribute();
00030 
00032       virtual ~DtAttribute();
00033 
00036       virtual void setPosition(float x, float y, float z, float w) = 0;
00037 
00039       virtual void setOffset(double x, double y) {};
00040 
00042       virtual void getMinSize(double& xOut, double& yOut) = 0;
00043 
00045       virtual void setColor(float r, float g, float b, float a) = 0;
00046 
00048       virtual void setSize(double x, double y) = 0;
00049 
00051       virtual void setVisible(bool visible) = 0;
00052 
00054       virtual bool visible() const = 0;
00055 
00058       virtual void setOverlay(unsigned int overlayId) = 0;
00059 
00061       boost::signal<
00062          void (DtAttribute* changedAttribute, double xSize, double ySize)>
00063          signal_sizeChanged;
00064    };
00065 }


Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)