BALL  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members
BALL::VIEW::AddSurfaceModel Class Reference

#include <BALL/VIEW/MODELS/surfaceModel.h>

Inheritance diagram for BALL::VIEW::AddSurfaceModel:
BALL::VIEW::ModelProcessor BALL::UnaryProcessor< Composite > BALL::PropertyManager BALL::UnaryFunctor< Composite, Processor::Result >

Public Member Functions

Constructors and Destructor
 AddSurfaceModel ()
 Default Constructor. More...
 
 AddSurfaceModel (const AddSurfaceModel &add_surface_model)
 Copy constructor. More...
 
virtual ~AddSurfaceModel ()
 Destructor. More...
 
virtual void clear ()
 
virtual void clearComposites ()
 
Accessors
SurfaceProcessor::SurfaceType getType () const
 Return the surface type (SES/SAS) More...
 
void setType (SurfaceProcessor::SurfaceType type)
 Set the surface type (SES/SAS) More...
 
Processor specific methods
virtual Processor::Result operator() (Composite &composite)
 
- Public Member Functions inherited from BALL::VIEW::ModelProcessor
 ModelProcessor ()
 
 ModelProcessor (const ModelProcessor &model_processor)
 
virtual ~ModelProcessor ()
 
virtual bool isValid () const
 
GeometricObjectListgetGeometricObjects ()
 Return the list with the created geometric objects. More...
 
const GeometricObjectListgetGeometricObjects () const
 Return the list with the created geometric objects. More...
 
void setDrawingPrecision (Index precision)
 
Index getDrawingPrecision () const
 
void setSurfaceDrawingPrecision (float precision)
 
float getSurfaceDrawingPrecision () const
 
- Public Member Functions inherited from BALL::UnaryProcessor< Composite >
 UnaryProcessor ()
 
 UnaryProcessor (const UnaryProcessor &)
 
virtual ~UnaryProcessor ()
 
virtual bool start ()
 
virtual bool finish ()
 
- Public Member Functions inherited from BALL::PropertyManager
BALL_INLINE PropertyManager ()
 Default constructor. More...
 
BALL_INLINE PropertyManager (const PropertyManager &property_manager)
 Copy constructor. More...
 
virtual ~PropertyManager ()
 Destructor. More...
 
virtual void destroy ()
 Clears all properties. More...
 
void set (const PropertyManager &property_manager)
 
const PropertyManageroperator= (const PropertyManager &property_manager)
 
void get (PropertyManager &property_manager) const
 
void swap (PropertyManager &property_manager)
 
BitVectorgetBitVector ()
 
const BitVectorgetBitVector () const
 
 operator BitVector & ()
 
void setProperty (Property property)
 
void clearProperty (Property property)
 
void toggleProperty (Property property)
 
Size countProperties () const
 
const NamedPropertygetNamedProperty (Position index) const
 
NamedPropertygetNamedProperty (Position index)
 
void setProperty (const NamedProperty &property)
 
void setProperty (const string &name)
 
void setProperty (const string &name, bool value)
 
void setProperty (const string &name, int value)
 
void setProperty (const string &name, unsigned int value)
 
void setProperty (const string &name, float value)
 
void setProperty (const string &name, double value)
 
void setProperty (const string &name, const string &value)
 
void setProperty (const string &name, const PersistentObject &value)
 
const NamedPropertygetProperty (const string &name) const
 
NamedPropertyIterator beginNamedProperty ()
 
NamedPropertyIterator endNamedProperty ()
 
void clearProperty (const string &name)
 
Size countNamedProperties () const
 
bool hasProperty (Property property) const
 Query for an unnamed property. More...
 
bool hasProperty (const string &name) const
 Query for a named property. More...
 
bool operator== (const PropertyManager &pm) const
 
bool operator!= (const PropertyManager &pm) const
 Inequality operator. More...
 
void write (PersistenceManager &pm) const
 Persistent stream writing. More...
 
bool read (PersistenceManager &pm)
 Persistent stream reading. More...
 
bool isValid () const
 
void dump (std::ostream &s=std::cout, Size depth=0) const
 

debuggers and diagnostics

HashSet< Atom * > atoms_
 
SurfaceProcessor::SurfaceType type_
 
float probe_radius_
 
virtual void dump (std::ostream &s=std::cout, Size depth=0) const
 
void setProbeRadius (float radius)
 
float getProbeRadius () const
 
virtual bool createGeometricObjects ()
 

Additional Inherited Members

- Public Types inherited from BALL::UnaryFunctor< Composite, Processor::Result >
typedef Processor::Result result_type
 
typedef Composite argument_type
 
typedef Compositeargument_reference
 
typedef const Compositeconst_argument_reference
 
typedef Compositeargument_pointer
 
typedef const Compositeconst_argument_pointer
 
- Protected Attributes inherited from BALL::VIEW::ModelProcessor
GeometricObjectList geometric_objects_
 
Index drawing_precision_
 
float surface_drawing_precision_
 

Detailed Description

AddSurfaceModel class. The class AddSurfaceModel is a model processor that creates a surface model of the given Composite object. A Mesh object is created and filled with the method SurfaceProcessor::getSurface. The surface can be either a solvent excluded surface (SES, default) or the solvent accesible surface (SAS). See SurfaceProcessor for details.

See Also
Mesh
SurfaceProcessor

Definition at line 34 of file surfaceModel.h.

Constructor & Destructor Documentation

BALL::VIEW::AddSurfaceModel::AddSurfaceModel ( )

Default Constructor.

BALL::VIEW::AddSurfaceModel::AddSurfaceModel ( const AddSurfaceModel add_surface_model)

Copy constructor.

virtual BALL::VIEW::AddSurfaceModel::~AddSurfaceModel ( )
virtual

Destructor.

Member Function Documentation

virtual void BALL::VIEW::AddSurfaceModel::clear ( )
virtual

Explicit default initialization. Calls ModelProcessor::clear.

Reimplemented from BALL::VIEW::ModelProcessor.

virtual void BALL::VIEW::AddSurfaceModel::clearComposites ( )
virtual

Needed in derived classes, which store references to the Composite instances they worked on. Here only needed for a common interface and therefore empty.

Reimplemented from BALL::VIEW::ModelProcessor.

virtual bool BALL::VIEW::AddSurfaceModel::createGeometricObjects ( )
virtual

Method to create geometric objects. This method is called in Representation::update() after all operator() was called for all Composites. To be overloaded in derived classes

Reimplemented from BALL::VIEW::ModelProcessor.

virtual void BALL::VIEW::AddSurfaceModel::dump ( std::ostream &  s = std::cout,
Size  depth = 0 
) const
virtual

Internal value dump. Dump the current state to the output ostream with a given dumping depth. Calls ModelProcessor::dump.

Parameters
soutput stream where to output the state
depththe dumping depth

Reimplemented from BALL::VIEW::ModelProcessor.

float BALL::VIEW::AddSurfaceModel::getProbeRadius ( ) const
inline

Definition at line 106 of file surfaceModel.h.

SurfaceProcessor::SurfaceType BALL::VIEW::AddSurfaceModel::getType ( ) const
inline

Return the surface type (SES/SAS)

Definition at line 69 of file surfaceModel.h.

virtual Processor::Result BALL::VIEW::AddSurfaceModel::operator() ( Composite composite)
virtual

Operator method. This method stores all Composite objects. In the finish() method for all stored start composite a Mesh object will be created. The resulting Representation is named after the first processed Composite.

Parameters
compositethe Composite object that will be processed
Returns
Processor::Result the result

Reimplemented from BALL::UnaryProcessor< Composite >.

void BALL::VIEW::AddSurfaceModel::setProbeRadius ( float  radius)
inline

Definition at line 102 of file surfaceModel.h.

void BALL::VIEW::AddSurfaceModel::setType ( SurfaceProcessor::SurfaceType  type)
inline

Set the surface type (SES/SAS)

Definition at line 72 of file surfaceModel.h.

Member Data Documentation

HashSet<Atom*> BALL::VIEW::AddSurfaceModel::atoms_
private

Definition at line 114 of file surfaceModel.h.

float BALL::VIEW::AddSurfaceModel::probe_radius_
private

Definition at line 118 of file surfaceModel.h.

SurfaceProcessor::SurfaceType BALL::VIEW::AddSurfaceModel::type_
private

Definition at line 116 of file surfaceModel.h.