Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Rendering/vtkRayCaster.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkRayCaster.h,v $
00005   Language:  C++
00006 
00007 
00008 Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen 
00009 All rights reserved.
00010 
00011 Redistribution and use in source and binary forms, with or without
00012 modification, are permitted provided that the following conditions are met:
00013 
00014  * Redistributions of source code must retain the above copyright notice,
00015    this list of conditions and the following disclaimer.
00016 
00017  * Redistributions in binary form must reproduce the above copyright notice,
00018    this list of conditions and the following disclaimer in the documentation
00019    and/or other materials provided with the distribution.
00020 
00021  * Neither name of Ken Martin, Will Schroeder, or Bill Lorensen nor the names
00022    of any contributors may be used to endorse or promote products derived
00023    from this software without specific prior written permission.
00024 
00025  * Modified source versions must be plainly marked as such, and must not be
00026    misrepresented as being the original software.
00027 
00028 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
00029 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00030 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00031 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR
00032 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00033 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00034 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00035 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00036 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00037 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00038 
00039 =========================================================================*/
00054 #ifndef __vtkRayCaster_h
00055 #define __vtkRayCaster_h
00056 
00057 #include "vtkObject.h"
00058 #include "vtkObjectFactory.h"
00059 
00060 class VTK_RENDERING_EXPORT vtkRayCaster : public vtkObject
00061 {
00062 public:
00063   static vtkRayCaster *New()
00064     {
00065       // First try to create the object from the vtkObjectFactory
00066       vtkObject* ret = vtkObjectFactory::CreateInstance("vtkRayCaster");
00067       if(ret)
00068         {
00069         return (vtkRayCaster*)ret;
00070         }
00071       
00072       // If the factory was unable to create the object, then create it here.
00073       return new vtkRayCaster;
00074     };
00075 
00076   vtkTypeMacro(vtkRayCaster,vtkObject);
00077   
00078 #ifndef VTK_REMOVE_LEGACY_CODE
00079   
00080   float *GetPerspectiveViewRays()
00081     {VTK_LEGACY_METHOD(GetPersepctiveViewRays,"4.0"); return NULL;};
00082   
00083   void GetViewRaysSize( int size[2] )
00084     {VTK_LEGACY_METHOD(GetViewRaysSize,"4.0");};
00085 
00086 
00087   float *GetParallelStartPosition( void )
00088     {VTK_LEGACY_METHOD(GetParallelStartPosition,"4.0"); return NULL;};
00089 
00090   float *GetParallelIncrements( void )
00091     {VTK_LEGACY_METHOD(GetParallelIncrements,"4.0"); return NULL;};
00092 
00093   
00094   void SetImageScale(int level, float scale)
00095     {VTK_LEGACY_METHOD(SetImageScale,"4.0");};
00096 
00097   float GetImageScale(int level) 
00098     {VTK_LEGACY_METHOD(GetImageScale,"4.0"); return 0.0;};
00099 
00100   int GetImageScaleCount( void ) 
00101     {VTK_LEGACY_METHOD(GetImageScaleCount,"4.0"); return 0;};
00102 
00103   void SetSelectedImageScaleIndex(int level, float scale)
00104     {VTK_LEGACY_METHOD(SetSelectedImageScaleIndex,"4.0");};
00105   
00106   float GetSelectedImageScaleIndex(int level)
00107     {VTK_LEGACY_METHOD(GetSelectedImageScaleIndex,"4.0"); return 0.0;};
00108   
00109   void SetViewRaysStepSize(int level, float scale)
00110     {VTK_LEGACY_METHOD(SetViewRaysStepSize,"4.0");};
00111   
00112   float GetViewRaysStepSize(int level)
00113     {VTK_LEGACY_METHOD(GetViewRaysStepSize,"4.0");return 0.0;};
00114 
00115   int GetAutomaticScaleAdjustment() 
00116     {VTK_LEGACY_METHOD(GetAutomaticScaleAdjustment,"4.0");return 0;};
00117   
00118   void AutomaticScaleAdjustmentOn( void )
00119     {VTK_LEGACY_METHOD(AutomaticScaleAdjustmentOn,"4.0");};
00120   
00121   void AutomaticScaleAdjustmentOff( void )
00122     {VTK_LEGACY_METHOD(AutomaticScaleAdjustmentOff,"4.0");};
00123 
00124   void SetAutomaticScaleLowerLimit(float scale)
00125     {VTK_LEGACY_METHOD(SetAutomaticScaleLowerLimit,"4.0");};
00126 
00127   float GetAutomaticScaleLowerLimit()
00128     {VTK_LEGACY_METHOD(GetAutomaticScaleLowerLimit,"4.0"); return 0.0;};
00129 
00130   void SetBilinearImageZoom(int val)
00131     {VTK_LEGACY_METHOD(SetBilinearImageZoom,"4.0");};
00132 
00133   int GetBilinearImageZoom()
00134     {VTK_LEGACY_METHOD(GetBilinearImageZoom,"4.0"); return 0;};
00135 
00136   void BilinearImageZoomOn()
00137     {VTK_LEGACY_METHOD(BilinearImageZoomOn,"4.0");};
00138 
00139   void BilinearImageZoomOff()
00140     {VTK_LEGACY_METHOD(BilinearImageZoomOff,"4.0");};
00141 
00142   float GetTotalRenderTime()
00143     {VTK_LEGACY_METHOD(GetTotalRenderTime,"4.0"); return 0.0;};
00144 
00145   void SetNumberOfThreads(int val)
00146     {VTK_LEGACY_METHOD(SetNumberOfThreads,"4.0");};
00147 
00148   int GetNumberOfThreads()
00149     {VTK_LEGACY_METHOD(GetNumberOfThreads,"4.0"); return 0;};
00150 
00151   int GetNumberOfSamplesTaken()
00152     {VTK_LEGACY_METHOD(GetNumberOfSamplesTaken,"4.0"); return 0;};
00153 #endif
00154   
00155 protected:
00156   vtkRayCaster() {};
00157   ~vtkRayCaster() {};
00158 
00159 private:
00160   vtkRayCaster(const vtkRayCaster&);  // Not implemented.
00161   void operator=(const vtkRayCaster&);  // Not implemented.
00162 };
00163 #endif
00164 
00165 

Generated on Thu Mar 28 14:19:34 2002 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001