VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
vtkProteinRibbonFilter Class Reference

generates protein ribbons More...

#include <vtkProteinRibbonFilter.h>

Inheritance diagram for vtkProteinRibbonFilter:
Inheritance graph
[legend]
Collaboration diagram for vtkProteinRibbonFilter:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkPolyDataAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkProteinRibbonFilterNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual float GetCoilWidth ()
virtual void SetCoilWidth (float)
virtual float GetHelixWidth ()
virtual void SetHelixWidth (float)
virtual int GetSubdivideFactor ()
virtual void SetSubdivideFactor (int)
virtual bool GetDrawSmallMoleculesAsSpheres ()
virtual void SetDrawSmallMoleculesAsSpheres (bool)
virtual int GetSphereResolution ()
virtual void SetSphereResolution (int)

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkProteinRibbonFilterSafeDownCast (vtkObjectBase *o)
static vtkProteinRibbonFilterNew ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkProteinRibbonFilter ()
 ~vtkProteinRibbonFilter ()
int FillInputPortInformation (int, vtkInformation *)
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void CreateThinStrip (vtkPolyData *poly, vtkUnsignedCharArray *pointsColors, vtkPoints *p, std::vector< std::pair< vtkVector3f, bool > > &p1, std::vector< std::pair< vtkVector3f, bool > > &p2, std::vector< vtkColor3ub > &colors)
void CreateAtomAsSphere (vtkPolyData *poly, vtkUnsignedCharArray *pointsColors, double *pos, const vtkColor3ub &color, float radius, float scale)
void SetColorByAtom (std::vector< vtkColor3ub > &colors, vtkStringArray *atomTypes)
void SetColorByStructure (std::vector< vtkColor3ub > &colors, vtkStringArray *atomTypes, vtkUnsignedCharArray *ss, const vtkColor3ub &helixColor, const vtkColor3ub &sheetColor)

Static Protected Member Functions

static std::vector< vtkVector3f > * Subdivide (std::vector< std::pair< vtkVector3f, bool > > &p, int div)

Protected Attributes

std::map< std::string,
vtkColor3ub
ElementColors
float CoilWidth
float HelixWidth
int SphereResolution
int SubdivideFactor
bool DrawSmallMoleculesAsSpheres

Detailed Description

generates protein ribbons

vtkProteinRibbonFilter is a polydata algorithm that generates protein ribbons.

Tests:
vtkProteinRibbonFilter (Tests)

Definition at line 38 of file vtkProteinRibbonFilter.h.


Member Typedef Documentation

Reimplemented from vtkPolyDataAlgorithm.

Definition at line 42 of file vtkProteinRibbonFilter.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkProteinRibbonFilter::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataAlgorithm.

virtual int vtkProteinRibbonFilter::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataAlgorithm.

Reimplemented from vtkPolyDataAlgorithm.

virtual vtkObjectBase* vtkProteinRibbonFilter::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkPolyDataAlgorithm.

Reimplemented from vtkPolyDataAlgorithm.

void vtkProteinRibbonFilter::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkPolyDataAlgorithm.

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkPolyDataAlgorithm.

Width of the ribbon coil. Default is 0.3.

virtual void vtkProteinRibbonFilter::SetCoilWidth ( float  ) [virtual]

Width of the ribbon coil. Default is 0.3.

Width of the helix part of the ribbon. Default is 1.3.

virtual void vtkProteinRibbonFilter::SetHelixWidth ( float  ) [virtual]

Width of the helix part of the ribbon. Default is 1.3.

Smoothing factor of the ribbon. Default is 20.

virtual void vtkProteinRibbonFilter::SetSubdivideFactor ( int  ) [virtual]

Smoothing factor of the ribbon. Default is 20.

If enabled, small molecules (HETATMs) are drawn as spheres. Default is true.

virtual void vtkProteinRibbonFilter::SetDrawSmallMoleculesAsSpheres ( bool  ) [virtual]

If enabled, small molecules (HETATMs) are drawn as spheres. Default is true.

Resolution of the spheres for small molecules. Default is 20.

virtual void vtkProteinRibbonFilter::SetSphereResolution ( int  ) [virtual]

Resolution of the spheres for small molecules. Default is 20.

int vtkProteinRibbonFilter::FillInputPortInformation ( int  port,
vtkInformation info 
) [protected, virtual]

Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.

Reimplemented from vtkPolyDataAlgorithm.

int vtkProteinRibbonFilter::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkPolyDataAlgorithm.

void vtkProteinRibbonFilter::CreateThinStrip ( vtkPolyData poly,
vtkUnsignedCharArray pointsColors,
vtkPoints p,
std::vector< std::pair< vtkVector3f, bool > > &  p1,
std::vector< std::pair< vtkVector3f, bool > > &  p2,
std::vector< vtkColor3ub > &  colors 
) [protected]
void vtkProteinRibbonFilter::CreateAtomAsSphere ( vtkPolyData poly,
vtkUnsignedCharArray pointsColors,
double pos,
const vtkColor3ub color,
float  radius,
float  scale 
) [protected]
static std::vector<vtkVector3f>* vtkProteinRibbonFilter::Subdivide ( std::vector< std::pair< vtkVector3f, bool > > &  p,
int  div 
) [static, protected]
void vtkProteinRibbonFilter::SetColorByAtom ( std::vector< vtkColor3ub > &  colors,
vtkStringArray atomTypes 
) [protected]
void vtkProteinRibbonFilter::SetColorByStructure ( std::vector< vtkColor3ub > &  colors,
vtkStringArray atomTypes,
vtkUnsignedCharArray ss,
const vtkColor3ub helixColor,
const vtkColor3ub sheetColor 
) [protected]

Member Data Documentation

std::map<std::string, vtkColor3ub> vtkProteinRibbonFilter::ElementColors [protected]

Definition at line 107 of file vtkProteinRibbonFilter.h.

Definition at line 109 of file vtkProteinRibbonFilter.h.

Definition at line 110 of file vtkProteinRibbonFilter.h.

Definition at line 111 of file vtkProteinRibbonFilter.h.

Definition at line 112 of file vtkProteinRibbonFilter.h.

Definition at line 113 of file vtkProteinRibbonFilter.h.


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