|
Public Types |
|
enum | Properties { PROPERTY__ALWAYS_FRONT = 0,
PROPERTY__IS_COORDINATE_SYSTEM
} |
| Properties.
More...
|
Public Member Functions |
|
| Representation () |
| Representation (ModelType model_type, DrawingPrecision drawing_precision, DrawingMode drawing_mode) |
| Representation (const Representation &representation) |
virtual | ~Representation () |
|
const Representation & | operator= (const Representation &rep) |
void | clear () |
| Clears all properties.
|
void | setHidden (bool state) |
bool | isHidden () const |
void | setDrawingPrecision (DrawingPrecision precision) |
DrawingPrecision | getDrawingPrecision () const |
float | getSurfaceDrawingPrecision () const |
void | setSurfaceDrawingPrecision (float precision) |
void | setDrawingMode (DrawingMode mode) |
DrawingMode | getDrawingMode () const |
Size | getTransparency () const |
| get transparency (0 - 255)
|
void | setTransparency (Size value) |
| set transparency (0 - 255)
|
const GeometricObjectList & | getGeometricObjects () const |
GeometricObjectList & | getGeometricObjects () |
void | setGeometricObjects (GeometricObjectList &gol) |
void | insert (GeometricObject &object) |
const List< const Composite * > & | getComposites () const |
void | setComposites (const List< const Composite * > &composites) |
void | setComposite (const Composite *composite) |
const ModelProcessor * | getModelProcessor () const |
ModelProcessor * | getModelProcessor () |
void | setModelProcessor (ModelProcessor *processor) |
ColorProcessor * | getColorProcessor () |
void | setColorProcessor (ColorProcessor *processor) |
void | setModelType (ModelType type) |
ModelType | getModelType () const |
String | getName () const |
void | setName (const String &name) |
String | getCompositeName () const |
| Returns a human-readable, potentially abbreviated string describing the molecular entity this representation belongs to.
|
void | setColoringMethod (ColoringMethod type) |
ColoringMethod | getColoringMethod () const |
void | enableModelUpdate (bool state) |
void | enableColoringUpdate (bool state) |
bool | modelUpdateEnabled () const |
bool | coloringUpdateEnabled () const |
String | getProperties () const |
| Get a descpription string (nr triangles and geometric objects, transparency, mode).
|
bool | isValid () const |
| Check if drawing mode, transparency and drawing precision have reasonable values.
|
void | update (bool rebuild) |
void | clearGeometricObjects () |
| Clear and destroy all stored GeometricObject.
|
const PreciseTime & | getModelBuildTime () const |
bool | needsUpdate () const |
void | setNeedsUpdate (bool state=true) |
void | dump (std::ostream &s=std::cout, Size depth=0) const |
| Dum to ostream for debugging.
|
String | toString () const |
| Get a String containing all settings for Usage in project files.
|
void | setModelInformation (const ModelInformation &mi) |
| Set a custom ModelInformation e.g. when new models were added external of the library.
|
const ModelInformation & | getModelInformation () const |
bool | operator== (const Representation &object) const |
bool | operator< (const Representation &object) const |
| Needed for MSVC.
|
Protected Member Functions |
void | update_ () |
void | collectRecursive_ (const Composite &c, HashMap< const Composite *, Position > &hashmap) const |
Protected Attributes |
DrawingMode | drawing_mode_ |
DrawingPrecision | drawing_precision_ |
float | surface_drawing_precision_ |
ModelType | model_type_ |
ColoringMethod | coloring_method_ |
Size | transparency_ |
ModelProcessor * | model_processor_ |
ColorProcessor * | color_processor_ |
List< const Composite * > | composites_ |
PreciseTime | model_build_time_ |
bool | needs_update_ |
bool | rebuild_ |
bool | changed_color_processor_ |
bool | hidden_ |
GeometricObjectList | geometric_objects_ |
bool | model_update_enabled_ |
bool | coloring_update_enabled_ |
String | name_ |
const ModelInformation * | custom_model_information_ |
Static Protected Attributes |
static MolecularInformation | information_ |
static ModelInformation | model_information_ |
Friends |
class | UpdateRepresentationThread |
class | RepresentationManager |