Loading...
Searching...
No Matches
modifyRepresentationDialog.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_VIEW_DIALOGS_MODIFYSURFACEDIALOG_H
#define BALL_VIEW_DIALOGS_MODIFYSURFACEDIALOG_H
#ifndef BALL_COMMON_GLOBAL_H
# include <BALL/COMMON/global.h>
#endif
#ifndef BALL_VIEW_DATATYPE_COLORRGBA_H
# include <BALL/VIEW/DATATYPE/colorRGBA.h>
#endif
#ifndef BALL_VIEW_PRIMITIVES_MESH_H
# include <BALL/VIEW/PRIMITIVES/mesh.h>
#endif
#ifndef BALL_VIEW_KERNEL_REPRESENTATION_H
# include <BALL/VIEW/KERNEL/representation.h>
#endif
#ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
# include <BALL/VIEW/KERNEL/modularWidget.h>
#endif
#ifndef BALL_DATATYPE_REGULARDATA3D
# include <BALL/DATATYPE/regularData3D.h>
#endif
#ifndef BALL_DATATYPE_HASHGRID_H
# include <BALL/DATATYPE/hashGrid.h>
#endif
#ifndef BALL_VIEW_DIALOG_MATERIALSETTINGS_H
# include <BALL/VIEW/DIALOGS/materialSettings.h>
#endif
#include <BALL/VIEW/UIC/ui_modifyRepresentationDialog.h>
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT ModifyRepresentationDialog
: public QDialog,
public Ui_ModifyRepresentationDialogData,
public ModularWidget
{
Q_OBJECT
public:
BALL_EMBEDDABLE(ModifyRepresentationDialog, ModularWidget)
ModifyRepresentationDialog(QWidget* parent = 0, const char* name = "ModifyRepresentationDialog",
bool modal = false, Qt::WindowFlags fl = 0);
~ModifyRepresentationDialog();
virtual void onNotify(Message *message);
void setRepresentation(Representation* rep);
void setGrid(RegularData3D* grid);
void setMinValue(float value);
void setMaxValue(float value);
void setMidValue(float value);
void setSplitRadius(float distance);
void setMode(Position pos);
public Q_SLOTS:
void accept();
void tabChanged();
void autoScale();
void choosePressed();
void gridSelected();
void show();
void applySplit();
protected Q_SLOTS:
void customColorTransparencyChanged();
void changeDrawingModeTransparencyChanged();
void splitMethodChanged();
protected:
ModifyRepresentationDialog(const ModifyRepresentationDialog& dialog);
typedef HashGrid3<const Atom*> AtomGrid;
typedef HashGridBox3<const Atom*> AtomBox;
void colorByCustomColor_();
bool colorByGrid_();
bool insertGrid_(RegularData3D& grid, const String& name);
void removeGrid_(RegularData3D& grid);
void invalidateGrid_();
void invalidateMesh_();
void changeDrawingMode_();
void checkApplyButton_();
void calculateIncludedVertices_(vector<bool>& include_vertex, const Mesh& org_mesh, HashSet<const Composite*>& roots);
inline bool checkInclude_(const AtomGrid& atom_grid, const Vector3& point) const;
RegularData3D* grid_;
float square_distance_;
ColorRGBA selected_color, min_min_color, min_color, mid_color, max_color, max_max_color;
Representation* rep_;
std::list<RegularData3D*> grid_list_;
vector<Vector3> vertices_;
MaterialSettings* material_settings_;
};
} // namespace VIEW
} // namespace BALL
#endif
global.h
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::Atom
Definition atom.h:90
BALL::Composite
Definition composite.h:74
BALL::HashGrid3
Three-dimensional Hash Grid Class.
Definition hashGrid.h:755
BALL::HashGridBox3
Definition hashGrid.h:55
BALL::HashSet
Definition hashSet.h:46
BALL::String
Definition string.h:57
BALL::VIEW::ColorRGBA
Definition colorRGBA.h:32
BALL::VIEW::MaterialSettings
Definition materialSettings.h:37
BALL::VIEW::Mesh
Definition mesh.h:42
BALL::VIEW::Message
Definition message.h:53
BALL::VIEW::ModifyRepresentationDialog::material_settings_
MaterialSettings * material_settings_
Definition modifyRepresentationDialog.h:135
BALL::VIEW::ModifyRepresentationDialog::applySplit
void applySplit()
BALL::VIEW::ModifyRepresentationDialog::checkApplyButton_
void checkApplyButton_()
BALL::VIEW::ModifyRepresentationDialog::setMaxValue
void setMaxValue(float value)
BALL::VIEW::ModifyRepresentationDialog::max_color
ColorRGBA max_color
Definition modifyRepresentationDialog.h:130
BALL::VIEW::ModifyRepresentationDialog::tabChanged
void tabChanged()
BALL::VIEW::ModifyRepresentationDialog::show
void show()
BALL::VIEW::ModifyRepresentationDialog::colorByGrid_
bool colorByGrid_()
BALL::VIEW::ModifyRepresentationDialog::setMinValue
void setMinValue(float value)
BALL::VIEW::ModifyRepresentationDialog::checkInclude_
bool checkInclude_(const AtomGrid &atom_grid, const Vector3 &point) const
BALL::VIEW::ModifyRepresentationDialog::gridSelected
void gridSelected()
BALL::VIEW::ModifyRepresentationDialog::choosePressed
void choosePressed()
BALL::VIEW::ModifyRepresentationDialog::calculateIncludedVertices_
void calculateIncludedVertices_(vector< bool > &include_vertex, const Mesh &org_mesh, HashSet< const Composite * > &roots)
BALL::VIEW::ModifyRepresentationDialog::changeDrawingModeTransparencyChanged
void changeDrawingModeTransparencyChanged()
BALL::VIEW::ModifyRepresentationDialog::min_color
ColorRGBA min_color
Definition modifyRepresentationDialog.h:130
BALL::VIEW::ModifyRepresentationDialog::AtomGrid
HashGrid3< const Atom * > AtomGrid
Definition modifyRepresentationDialog.h:113
BALL::VIEW::ModifyRepresentationDialog::selected_color
ColorRGBA selected_color
Definition modifyRepresentationDialog.h:130
BALL::VIEW::ModifyRepresentationDialog::changeDrawingMode_
void changeDrawingMode_()
BALL::VIEW::ModifyRepresentationDialog::customColorTransparencyChanged
void customColorTransparencyChanged()
BALL::VIEW::ModifyRepresentationDialog::colorByCustomColor_
void colorByCustomColor_()
BALL::VIEW::ModifyRepresentationDialog::autoScale
void autoScale()
BALL::VIEW::ModifyRepresentationDialog::accept
void accept()
BALL::VIEW::ModifyRepresentationDialog::splitMethodChanged
void splitMethodChanged()
BALL::VIEW::ModifyRepresentationDialog::mid_color
ColorRGBA mid_color
Definition modifyRepresentationDialog.h:130
BALL::VIEW::ModifyRepresentationDialog::setRepresentation
void setRepresentation(Representation *rep)
BALL::VIEW::ModifyRepresentationDialog::grid_
RegularData3D * grid_
Definition modifyRepresentationDialog.h:127
BALL::VIEW::ModifyRepresentationDialog::grid_list_
std::list< RegularData3D * > grid_list_
Definition modifyRepresentationDialog.h:133
BALL::VIEW::ModifyRepresentationDialog::invalidateGrid_
void invalidateGrid_()
BALL::VIEW::ModifyRepresentationDialog::setSplitRadius
void setSplitRadius(float distance)
BALL::VIEW::ModifyRepresentationDialog::insertGrid_
bool insertGrid_(RegularData3D &grid, const String &name)
BALL::VIEW::ModifyRepresentationDialog::square_distance_
float square_distance_
Definition modifyRepresentationDialog.h:128
BALL::VIEW::ModifyRepresentationDialog::setGrid
void setGrid(RegularData3D *grid)
BALL::VIEW::ModifyRepresentationDialog::AtomBox
HashGridBox3< const Atom * > AtomBox
Definition modifyRepresentationDialog.h:114
BALL::VIEW::ModifyRepresentationDialog::setMode
void setMode(Position pos)
BALL::VIEW::ModifyRepresentationDialog::vertices_
vector< Vector3 > vertices_
Definition modifyRepresentationDialog.h:134
BALL::VIEW::ModifyRepresentationDialog::ModifyRepresentationDialog
ModifyRepresentationDialog(QWidget *parent=0, const char *name="ModifyRepresentationDialog", bool modal=false, Qt::WindowFlags fl=0)
BALL::VIEW::ModifyRepresentationDialog::invalidateMesh_
void invalidateMesh_()
BALL::VIEW::ModifyRepresentationDialog::max_max_color
ColorRGBA max_max_color
Definition modifyRepresentationDialog.h:130
BALL::VIEW::ModifyRepresentationDialog::rep_
Representation * rep_
Definition modifyRepresentationDialog.h:132
BALL::VIEW::ModifyRepresentationDialog::removeGrid_
void removeGrid_(RegularData3D &grid)
BALL::VIEW::ModifyRepresentationDialog::setMidValue
void setMidValue(float value)
BALL::VIEW::ModifyRepresentationDialog::onNotify
virtual void onNotify(Message *message)
BALL::VIEW::ModifyRepresentationDialog::min_min_color
ColorRGBA min_min_color
Definition modifyRepresentationDialog.h:130
BALL::VIEW::ModularWidget::ModularWidget
ModularWidget(const char *name="<ModularWidget>")
BALL::VIEW::Representation
Definition representation.h:59
QDialog
QWidget
colorRGBA.h
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition embeddable.h:31
hashGrid.h
materialSettings.h
mesh.h
modularWidget.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
BALL::RegularData3D
TRegularData3D< float > RegularData3D
Definition regularData3D.h:515
BALL::Position
BALL_SIZE_TYPE Position
Definition COMMON/global.h:140
BALL::Vector3
TVector3< float > Vector3
Definition vector3.h:1084
std
STL namespace.
regularData3D.h
representation.h