Loading...
Searching...
No Matches
modelProcessor.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: modelProcessor.h,v 1.19.20.1 2007/03/28 13:51:47 amoll Exp $
//
#ifndef BALL_VIEW_MODELS_MODELPROCESSOR_H
#define BALL_VIEW_MODELS_MODELPROCESSOR_H
#ifndef BALL_CONCEPT_COMPOSITE_H
# include <BALL/CONCEPT/composite.h>
#endif
#ifndef BALL_CONCEPT_PROPERTY_H
# include <BALL/CONCEPT/property.h>
#endif
#ifndef BALL_VIEW_KERNEL_GEOMETRICOBJECT_H
# include <BALL/VIEW/KERNEL/geometricObject.h>
#endif
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT ModelProcessor
: public UnaryProcessor<Composite>,
public PropertyManager
{
public:
BALL_CREATE(ModelProcessor)
ModelProcessor();
ModelProcessor(const ModelProcessor& model_processor);
virtual ~ModelProcessor();
virtual void clear();
virtual bool isValid() const
{return true;};
virtual void clearComposites()
{};
virtual void dump(std::ostream& /*s = std::cout*/, Size /*depth = 0*/) const
{};
GeometricObjectList& getGeometricObjects()
{ return geometric_objects_;}
const GeometricObjectList& getGeometricObjects() const
{ return geometric_objects_;}
void setDrawingPrecision(Index precision);
Index getDrawingPrecision() const;
void setSurfaceDrawingPrecision(float precision);
float getSurfaceDrawingPrecision() const;
virtual bool createGeometricObjects()
{ return true;}
protected:
//_
GeometricObjectList geometric_objects_;
//_
Index drawing_precision_;
//_
float surface_drawing_precision_;
};
} // namespace VIEW
} // namespace BALL
#endif // BALL_VIEW_MODELS_MODELPROCESSOR_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::PropertyManager::PropertyManager
BALL_INLINE PropertyManager()
Default constructor.
BALL::UnaryProcessor< Composite >::UnaryProcessor
UnaryProcessor()
Definition processor.h:69
BALL::VIEW::ModelProcessor::getGeometricObjects
const GeometricObjectList & getGeometricObjects() const
Return the list with the created geometric objects.
Definition modelProcessor.h:77
BALL::VIEW::ModelProcessor::ModelProcessor
ModelProcessor()
BALL::VIEW::ModelProcessor::getSurfaceDrawingPrecision
float getSurfaceDrawingPrecision() const
BALL::VIEW::ModelProcessor::getGeometricObjects
GeometricObjectList & getGeometricObjects()
Return the list with the created geometric objects.
Definition modelProcessor.h:73
BALL::VIEW::ModelProcessor::setDrawingPrecision
void setDrawingPrecision(Index precision)
BALL::VIEW::ModelProcessor::dump
virtual void dump(std::ostream &, Size) const
Definition modelProcessor.h:69
BALL::VIEW::ModelProcessor::clear
virtual void clear()
Clear all datastructures, but dont destroy the geometric objects.
BALL::VIEW::ModelProcessor::isValid
virtual bool isValid() const
Definition modelProcessor.h:59
BALL::VIEW::ModelProcessor::geometric_objects_
GeometricObjectList geometric_objects_
Definition modelProcessor.h:103
BALL::VIEW::ModelProcessor::getDrawingPrecision
Index getDrawingPrecision() const
BALL::VIEW::ModelProcessor::drawing_precision_
Index drawing_precision_
Definition modelProcessor.h:106
BALL::VIEW::ModelProcessor::createGeometricObjects
virtual bool createGeometricObjects()
Definition modelProcessor.h:97
BALL::VIEW::ModelProcessor::clearComposites
virtual void clearComposites()
Definition modelProcessor.h:65
BALL::VIEW::ModelProcessor::setSurfaceDrawingPrecision
void setSurfaceDrawingPrecision(float precision)
BALL::VIEW::ModelProcessor::surface_drawing_precision_
float surface_drawing_precision_
Definition modelProcessor.h:109
composite.h
BALL_CREATE
#define BALL_CREATE(name)
Definition create.h:62
geometricObject.h
BALL::VIEW
Definition constraints.h:35
BALL::VIEW::GeometricObjectList
std::list< GeometricObject * > GeometricObjectList
Definition geometricObject.h:185
BALL
Definition constants.h:13
BALL::Size
BALL_SIZE_TYPE Size
Definition COMMON/global.h:114
BALL::Index
BALL_INDEX_TYPE Index
Definition COMMON/global.h:105
property.h