/usr/include/BALL/VIEW/DIALOGS/modifyRepresentationDialog.h is in libballview1.4-dev 1.4.3~beta1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | // -*- 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
{
/** Dialog for coloring of surfaces
The surfaces can be colored by a given color, or from the values, contained
in a RegularData3D grid. You can also set the transparency of the surface.
\ingroup ViewDialogs
*/
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::WFlags 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 slots:
void accept();
void tabChanged();
void autoScale();
void choosePressed();
void gridSelected();
void show();
void applySplit();
protected 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
|