• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Rendering/vtkDynamic2DLabelMapper.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkDynamic2DLabelMapper.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 /*-------------------------------------------------------------------------
00016   Copyright 2008 Sandia Corporation.
00017   Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00018   the U.S. Government retains certain rights in this software.
00019 -------------------------------------------------------------------------*/
00058 #ifndef __vtkDynamic2DLabelMapper_h
00059 #define __vtkDynamic2DLabelMapper_h
00060 
00061 #include "vtkLabeledDataMapper.h"
00062 
00063 class VTK_RENDERING_EXPORT vtkDynamic2DLabelMapper : public vtkLabeledDataMapper
00064 {
00065 public:
00067 
00069   static vtkDynamic2DLabelMapper *New();
00070   vtkTypeRevisionMacro(vtkDynamic2DLabelMapper, vtkLabeledDataMapper);
00071   void PrintSelf(ostream& os, vtkIndent indent);
00073   
00076   void SetPriorityArrayName(const char* name);
00077   
00079 
00081   vtkSetMacro(ReversePriority, bool);
00082   vtkGetMacro(ReversePriority, bool);
00083   vtkBooleanMacro(ReversePriority, bool);
00085   
00087 
00089   vtkSetMacro(LabelHeightPadding, float);
00090   vtkGetMacro(LabelHeightPadding, float);
00092   
00094 
00096   vtkSetMacro(LabelWidthPadding, float);
00097   vtkGetMacro(LabelWidthPadding, float);
00099   
00101 
00102   void RenderOpaqueGeometry(vtkViewport* viewport, vtkActor2D* actor);
00103   void RenderOverlay(vtkViewport *viewport, vtkActor2D *actor);
00105 
00106 protected:
00107   vtkDynamic2DLabelMapper();
00108   ~vtkDynamic2DLabelMapper();
00109 
00111   double GetCurrentScale(vtkViewport *viewport);
00112   
00113   float* LabelWidth;
00114   float* LabelHeight;
00115   float* Cutoff;
00116   float ReferenceScale;
00117   float LabelHeightPadding;
00118   float LabelWidthPadding;
00119   
00120   bool ReversePriority;
00121 
00122 private:
00123   vtkDynamic2DLabelMapper(const vtkDynamic2DLabelMapper&);  // Not implemented.
00124   void operator=(const vtkDynamic2DLabelMapper&);  // Not implemented.
00125 };
00126 
00127 #endif
00128 

Generated by  doxygen 1.7.1