00001 //------------------------------------------------------------------------ 00002 // 00003 // Joe Kniss 00004 // 3-20-03 00005 // ________ ____ ___ 00006 // | \ / | / / 00007 // +---+ \/ |/ / 00008 // +--+| |\ /| < 00009 // | || | \ / | |\ \ 00010 // | | \/ | | \ \ 00011 // \_____| |__| \__\ 00012 // Copyright 2003 00013 // Joe Michael Kniss 00014 // <<< jmk@cs.utah.edu >>> 00015 // "All Your Base are Belong to Us" 00016 //------------------------------------------------------------------------- 00017 00018 // TFManager.h 00019 00020 #ifndef __TRANSFER_FUNCTION_MANAGER_DOT_H 00021 #define __TRANSFER_FUNCTION_MANAGER_DOT_H 00022 00023 #include <simBase/simBase.h> 00024 #include <smartptr.h> 00025 #include "TFBase.h" 00026 #include "TFViewWidget.h" 00027 #include "TFElement.h" 00028 #include <widget/WidgetBase.h> 00029 00030 /// Manages collaboration between TFGeneric and TFViewWidget, and 00031 /// TFViewWidget -> TFEltView -> TFElement. 00032 class TFManager : public SimBase, public gutz::Counted 00033 { 00034 public: 00035 /// creates a TFGeneric by default 00036 TFManager(); 00037 /// created from an existing TFGeneric 00038 TFManager(TFGeneric *tf); 00039 00040 00041 ///insertElement slot 00042 /// corresponds to TFViewWidget::insertElementEvent 00043 virtual void insertElement(const gutz::vec2i &axes, const gutz::vec2f pos); 00044 00045 protected: 00046 00047 TFGenericSP _tf; 00048 00049 }; 00050 00051 00052 #endif 00053