arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

StandardTF.h

Go to the documentation of this file.
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 /// StandardTF.h
00019 
00020 /// some simple transfer functions
00021 
00022 #ifndef __STANDARD_TRANSFER_FUNCTIONS_DOT_H
00023 #define __STANDARD_TRANSFER_FUNCTIONS_DOT_H
00024 
00025 #include "TFBase.h"
00026 
00027 class LinRampTF : public TFBaseIF {
00028 public:
00029 
00030    LinRampTF() {}
00031    virtual ~LinRampTF() {}
00032 
00033    /// evaluate the tf at some location in the domain
00034    virtual STF::tfRangeType eval(const STF::tfDomainType &tfpos) = 0;
00035 
00036    /// domain of transfer function
00037    virtual int sizeDomain() const;
00038    
00039    /// range of transfer function
00040    virtual int sizeRange() const;
00041 
00042    /// number of values produced by transfer function:
00043    /// likely just 4 for RGBA
00044    virtual int numParams() const = 0; 
00045 
00046 };
00047 
00048 
00049 class NDGausTF : public TFBaseIF {
00050 public:
00051    NDGausTF() {}
00052    virtual ~NDGausTF() {}
00053 
00054    
00055 
00056 };
00057 
00058 
00059 #endif
00060 

Send questions, comments, and bug reports to:
jmk