Go to the documentation of this file.
5 #ifndef BALL_VIEW_KERNEL_REPRESENTATION_H
6 #define BALL_VIEW_KERNEL_REPRESENTATION_H
8 #ifndef BALL_CONCEPT_PROPERTY_H
12 #ifndef BALL_CONCEPT_COMPOSITE_H
16 #ifndef BALL_VIEW_KERNEL_COMMON_H
20 #ifndef BALL_CONCEPT_MOLECULARINFORMATION_H
24 #ifndef BALL_VIEW_KERNEL_MODELINFORMATION_H
29 #ifndef BALL_VIEW_MODELS_MODELPROCESSOR_H
33 #ifndef BALL_VIEW_MODELS_COLORPROCESSOR_H
44 class GeometricObject;
45 class UpdateRepresentationThread;
46 class RepresentationManager;
74 PROPERTY__ALWAYS_FRONT = 0,
77 PROPERTY__IS_COORDINATE_SYSTEM
151 { geometric_objects_ = gol;}
158 {
return composites_;}
246 void dump(std::ostream& s = std::cout,
Size depth = 0)
const;
263 {
return this < &object;}
344 # ifndef BALL_NO_INLINE_FUNCTIONS
345 # include <BALL/VIEW/KERNEL/representation.iC>
351 #endif // BALL_VIEW_KERNEL_REPRESENTATION_H
bool coloringUpdateEnabled() const
float getSurfaceDrawingPrecision() const
bool isValid() const
Check if drawing mode, transparency and drawing precision have reasonable values.
void enableModelUpdate(bool state)
void dump(std::ostream &s=std::cout, Size depth=0) const
Dum to ostream for debugging.
void setName(const String &name)
void insert(GeometricObject &object)
std::list< GeometricObject * > GeometricObjectList
std::list< Representation * > RepresentationList
String getProperties() const
Get a descpription string (nr triangles and geometric objects, transparency, mode)
DrawingMode drawing_mode_
virtual ~Representation()
std::list< const Composite * > composites_
void setModelProcessor(ModelProcessor *processor)
DrawingPrecision
Enumeration for Drawing Precisions.
HashMap class based on the STL map (containing serveral convenience functions)
bool changed_color_processor_
void setHidden(bool state)
ColorProcessor * getColorProcessor()
void setDrawingMode(DrawingMode mode)
BALL_EXPORT bool operator<(const String &s1, const String &s2)
GeometricObjectList & getGeometricObjects()
void setModelInformation(const ModelInformation &mi)
Set a custom ModelInformation e.g. when new models were added external of the library.
DrawingMode getDrawingMode() const
ColorProcessor * color_processor_
String getCompositeName() const
Returns a human-readable, potentially abbreviated string describing the molecular entity this represe...
void clearGeometricObjects()
Clear and destroy all stored GeometricObject.
void setColorProcessor(ColorProcessor *processor)
ModelType getModelType() const
const ModelProcessor * getModelProcessor() const
void setNeedsUpdate(bool state=true)
void setComposites(const std::list< const Composite * > &composites)
void setComposite(const Composite *composite)
ColoringMethod getColoringMethod() const
DrawingPrecision getDrawingPrecision() const
BALL_EXTERN_VARIABLE const double c
Representation(ModelType model_type, DrawingPrecision drawing_precision, DrawingMode drawing_mode)
static MolecularInformation information_
String toString() const
Get a String containing all settings for Usage in project files.
void enableColoringUpdate(bool state)
const ModelInformation & getModelInformation() const
bool coloring_update_enabled_
Size getTransparency() const
get transparency (0 - 255)
ModelProcessor * getModelProcessor()
void setTransparency(Size value)
set transparency (0 - 255)
void setGeometricObjects(GeometricObjectList &gol)
BALL_EXPORT bool operator==(const String &s1, const String &s2)
bool modelUpdateEnabled() const
DrawingMode
Enumeration for Drawing Modes.
void setSurfaceDrawingPrecision(float precision)
void update(bool rebuild)
PreciseTime model_build_time_
GeometricObjectList geometric_objects_
static ModelInformation model_information_
const std::list< const Composite * > & getComposites() const
bool model_update_enabled_
#define BALL_CREATE(name)
Representation(const Representation &representation)
const GeometricObjectList & getGeometricObjects() const
const PreciseTime & getModelBuildTime() const
void clear()
Clears all properties.
ColoringMethod coloring_method_
DrawingPrecision drawing_precision_
void setDrawingPrecision(DrawingPrecision precision)
void collectRecursive_(const Composite &c, HashMap< const Composite *, Position > &hashmap) const
float surface_drawing_precision_
ModelProcessor * model_processor_
void setColoringMethod(ColoringMethod type)
const ModelInformation * custom_model_information_
void setModelType(ModelType type)