Go to the documentation of this file.
7 #ifndef BALL_VIEW_KERNEL_COMMON_H
8 #define BALL_VIEW_KERNEL_COMMON_H
10 #ifndef BALL_DATATYPE_STRING_H
14 #ifndef BALL_MATHS_VECTOR3
18 #ifndef BALL_CONCEPT_COMPOSITE_H
22 #ifndef BALL_DATATYPE_REGULARDATA3D_H
26 #include <QtCore/QEvent>
27 #include <QtWidgets/QColorDialog>
28 #include <QtWidgets/QLabel>
29 #include <QtGui/QDropEvent>
36 class GeometricObject;
50 #define VIEW_DEFAULT_PORT 20000
54 #define BALL_ASSIGN_NAME(OBJ)\
55 OBJ->setObjectName(#OBJ);
125 #define BALL_VIEW_MAXIMAL_DRAWING_MODE 4
147 #define BALL_VIEW_MAXIMAL_DRAWING_PRECISION 4
150 #define BALL_VIEW_MAXIMAL_DISPLAY_LIST_OBJECT_SIZE BALL_VIEW_MAXIMAL_DRAWING_PRECISION * BALL_VIEW_MAXIMAL_DRAWING_MODE
358 #define BALLVIEW_DEBUG logString(String("A problem occurred in ") + __FILE__ + " " + \
359 String(__LINE__) + ". Please notify us on GitHub: " + \
360 "https://github.com/ball-project/ball/issues\n");
395 std::vector<Vector3>& interpolated_values);
416 #endif // BALL_VIEW_KERNEL_COMMON_H
@ MODEL_CARTOON
defines the property for the model: Cartoon
BALL_VIEW_EXPORT Composite composite_to_be_ignored_for_colorprocessors_
@ MODEL_PROXIMITY_LIGHT
defines the property for the model: proximity light
@ LOG_EVENT
Event to print output from a Thread.
float icosaeder_vertices[12][3]
Code to refine a icosaeder:
@ NOTIFICATION_EVENT
Event for passing BALL Messages accross threads.
@ COLORING_TEMPERATURE_FACTOR
void setShowOnlyInLogView(bool state)
@ MOTIONTRACKING_EVENT
Event that encodes a motion tracker position change.
@ DRAWING_PRECISION_INVALID
@ MODEL_UNKNOWN
unkown property
@ MODEL_RIBBON
defines the property for the model: Ribbon
BALL_VIEW_EXPORT float SurfaceDrawingPrecisions[4]
Mapping from the enum to the float values of Surfaces.
DrawingPrecision
Enumeration for Drawing Precisions.
@ MODEL_CONTOUR_SURFACE
defines the property for the model: contour surface
@ MODEL_SE_SURFACE
defines the property for the model: solvent-excluded surface
BALL_VIEW_EXPORT void calculateRandomPoints(const RegularData3D &grid, Size nr_points, vector< Vector3 > &resulting_points)
calcualte a random set of points, dependening of the field strength of a grid
@ HEADTRACKING_EVENT
Event that encodes a head tracker position change.
BALL_VIEW_EXPORT String ascii(const QString &str)
@ COLORING_SECONDARY_STRUCTURE
BALL_VIEW_EXPORT void subdivideTriangle(vector< Vector3 > &results, Vector3 &v1, Vector3 &v2, Vector3 &v3, Size precision)
BALL_VIEW_EXPORT void processDropEvent(QDropEvent *e)
Event class used for thread safe output to logview.
TRegularData3D< float > RegularData3D
BALL_VIEW_EXPORT void setColor(const QLabel *label, const ColorRGBA &color)
BALL_VIEW_EXPORT QColor chooseColor(QLabel *label)
@ TRANSFORMATION_EVENT_6D
Event that encodes a 6 dimensional transformation.
BALL_VIEW_EXPORT Vector3 getNormal(const Vector3 &v)
@ DRAWING_PRECISION_ULTRA
@ RENDER_TO_BUFFER_FINISHED_EVENT
Event posted by renderers after a new buffer is available.
BALL_VIEW_EXPORT MainControl * getMainControl()
@ MESSAGE_EVENT
An event with a contained VIEW message.
BALL_VIEW_EXPORT String createTemporaryFilename()
Create a temporary filename in the users home dir.
@ MODEL_VDW
defines the property for the model: Van der Waals
BALL_VIEW_EXPORT void setTextColor(QLabel *label, const ColorRGBA &color)
@ MODEL_STICK
defines the property for the model: Stick
@ MODEL_BACKBONE
defines the property for the model: Backbone
TVector3< float > Vector3
@ BUTTON_RELEASE_EVENT
Event for button press events of custom input devices.
BALL_VIEW_EXPORT void cubicInterpolation(const Vector3 &a, const Vector3 &b, const Vector3 &tangent_a, const Vector3 &tangent_b, std::vector< Vector3 > &interpolated_values)
@ MODEL_BALL_AND_STICK
defines the property for the model: Ball and Stick
bool isImportant()
will allways be shown in Statusbar or just when no other message shown?
BALL_VIEW_EXPORT vector< Vector3 > createSphere(Size precision)
void setImportant(bool state)
@ MODEL_HBONDS
defines the property for the model: H-Bonds
BALL_VIEW_EXPORT Camera focusCamera(Composite *composite)
@ MODEL_LINES
defines the property for the model: Lines
@ BUTTON_PRESS_EVENT
Event for button press events of custom input devices.
BALL_VIEW_EXPORT void calculateHistogramEqualization(const vector< float > &values, vector< float > &normalized_values, bool use_absolute_values=false)
DrawingMode
Enumeration for Drawing Modes.
bool showOnlyInLogView() const
only show in logview, no change to status bar
@ DRAWING_PRECISION_MEDIUM
BALL_VIEW_EXPORT void logString(const String &data)
thread safe output to logview
BALL_VIEW_EXPORT String createFloatString(float value, Size precision)
create a string from a float and cut after a given number of digits after the dot
BALL_VIEW_EXPORT String vector3ToString(const Vector3 &v)
@ MODEL_SA_SURFACE
defines the property for the model: solvent-accessible surface
BALL_VIEW_EXPORT ColorRGBA getColor(const QLabel *label)
Position icosaeder_indices[20][3]
BALL_VIEW_EXPORT bool stringToVector3(const String &data, Vector3 &v)
void setMessage(const String &msg)
@ MODEL_COORDINATE_SYSTEM
@ MODEL_LABEL
defines the property for the model: Label