VTK
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkBezierContourLineInterpolator Class Reference

Interpolates supplied nodes with bezier line segments. More...

#include <vtkBezierContourLineInterpolator.h>

Inheritance diagram for vtkBezierContourLineInterpolator:
[legend]
Collaboration diagram for vtkBezierContourLineInterpolator:
[legend]

Public Member Functions

virtual int InterpolateLine (vtkRenderer *ren, vtkContourRepresentation *rep, int idx1, int idx2)
 
virtual void SetMaximumCurveError (double)
 
virtual double GetMaximumCurveError ()
 
virtual void SetMaximumCurveLineSegments (int)
 
virtual int GetMaximumCurveLineSegments ()
 
virtual void GetSpan (int nodeIndex, vtkIntArray *nodeIndices, vtkContourRepresentation *rep)
 
- Public Member Functions inherited from vtkContourLineInterpolator
virtual int UpdateNode (vtkRenderer *, vtkContourRepresentation *, double *vtkNotUsed(node), int vtkNotUsed(idx))
 
vtkContourLineInterpolatorNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
virtual unsigned long GetMTime ()
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
void SetReferenceCount (int)
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static vtkBezierContourLineInterpolatorNew ()
 
- Static Public Member Functions inherited from vtkContourLineInterpolator
static int IsTypeOf (const char *type)
 
static vtkContourLineInterpolatorSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

 vtkBezierContourLineInterpolator ()
 
 ~vtkBezierContourLineInterpolator ()
 
void ComputeMidpoint (double p1[3], double p2[3], double mid[3])
 
- Protected Member Functions inherited from vtkContourLineInterpolator
 vtkContourLineInterpolator ()
 
 ~vtkContourLineInterpolator ()
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

double MaximumCurveError
 
int MaximumCurveLineSegments
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 
typedef vtkContourLineInterpolator Superclass
 
static int IsTypeOf (const char *type)
 
static vtkBezierContourLineInterpolatorSafeDownCast (vtkObjectBase *o)
 
virtual int IsA (const char *type)
 
vtkBezierContourLineInterpolatorNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual vtkObjectBaseNewInstanceInternal () const
 

Additional Inherited Members

- Public Types inherited from vtkContourLineInterpolator
typedef vtkObject Superclass
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Detailed Description

Interpolates supplied nodes with bezier line segments.

The line interpolator interpolates supplied nodes (see InterpolateLine) with bezier line segments. The finess of the curve may be controlled using SetMaximumCurveError and SetMaximumNumberOfLineSegments.

See also
vtkContourLineInterpolator

Definition at line 32 of file vtkBezierContourLineInterpolator.h.

Member Typedef Documentation

Standard methods for instances of this class.

Definition at line 42 of file vtkBezierContourLineInterpolator.h.

Constructor & Destructor Documentation

vtkBezierContourLineInterpolator::vtkBezierContourLineInterpolator ( )
protected
vtkBezierContourLineInterpolator::~vtkBezierContourLineInterpolator ( )
protected

Member Function Documentation

static vtkBezierContourLineInterpolator* vtkBezierContourLineInterpolator::New ( )
static

Instantiate this class.

static int vtkBezierContourLineInterpolator::IsTypeOf ( const char *  type)
static

Standard methods for instances of this class.

virtual int vtkBezierContourLineInterpolator::IsA ( const char *  type)
virtual

Standard methods for instances of this class.

Reimplemented from vtkContourLineInterpolator.

static vtkBezierContourLineInterpolator* vtkBezierContourLineInterpolator::SafeDownCast ( vtkObjectBase o)
static

Standard methods for instances of this class.

virtual vtkObjectBase* vtkBezierContourLineInterpolator::NewInstanceInternal ( ) const
protectedvirtual

Standard methods for instances of this class.

Reimplemented from vtkContourLineInterpolator.

vtkBezierContourLineInterpolator* vtkBezierContourLineInterpolator::NewInstance ( ) const

Standard methods for instances of this class.

void vtkBezierContourLineInterpolator::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Standard methods for instances of this class.

Reimplemented from vtkObject.

virtual int vtkBezierContourLineInterpolator::InterpolateLine ( vtkRenderer ren,
vtkContourRepresentation rep,
int  idx1,
int  idx2 
)
virtual

Subclasses that wish to interpolate a line segment must implement this. For instance vtkBezierContourLineInterpolator adds nodes between idx1 and idx2, that allow the contour to adhere to a bezier curve.

Implements vtkContourLineInterpolator.

virtual void vtkBezierContourLineInterpolator::SetMaximumCurveError ( double  )
virtual

The difference between a line segment connecting two points and the curve connecting the same points. In the limit of the length of the curve dx -> 0, the two values will be the same. The smaller this number, the finer the bezier curve will be interpolated. Default is 0.005

virtual double vtkBezierContourLineInterpolator::GetMaximumCurveError ( )
virtual

The difference between a line segment connecting two points and the curve connecting the same points. In the limit of the length of the curve dx -> 0, the two values will be the same. The smaller this number, the finer the bezier curve will be interpolated. Default is 0.005

virtual void vtkBezierContourLineInterpolator::SetMaximumCurveLineSegments ( int  )
virtual

Maximum number of bezier line segments between two nodes. Larger values create a finer interpolation. Default is 100.

virtual int vtkBezierContourLineInterpolator::GetMaximumCurveLineSegments ( )
virtual

Maximum number of bezier line segments between two nodes. Larger values create a finer interpolation. Default is 100.

virtual void vtkBezierContourLineInterpolator::GetSpan ( int  nodeIndex,
vtkIntArray nodeIndices,
vtkContourRepresentation rep 
)
virtual

Span of the interpolator. ie. the number of control points its supposed to interpolate given a node. The first argument is the current nodeIndex. ie, you'd be trying to interpolate between nodes "nodeIndex" and "nodeIndex-1", unless you're closing the contour in which case, you're trying to interpolate "nodeIndex" and "Node=0". The node span is returned in a vtkIntArray. The node span is returned in a vtkIntArray. The node span returned by this interpolator will be a 2-tuple with a span of 4.

Reimplemented from vtkContourLineInterpolator.

void vtkBezierContourLineInterpolator::ComputeMidpoint ( double  p1[3],
double  p2[3],
double  mid[3] 
)
inlineprotected

Definition at line 84 of file vtkBezierContourLineInterpolator.h.

Member Data Documentation

double vtkBezierContourLineInterpolator::MaximumCurveError
protected

Definition at line 91 of file vtkBezierContourLineInterpolator.h.

int vtkBezierContourLineInterpolator::MaximumCurveLineSegments
protected

Definition at line 92 of file vtkBezierContourLineInterpolator.h.


The documentation for this class was generated from the following file: