57 #include <QFileDialog> 60 #include <OpenFlipper/common/OFGLWidget.hh> 63 #include <OpenFlipper/BasePlugin/PluginFunctionsViewControls.hh> 275 const QRegion& _region,
276 QList<QPair<size_t, size_t> >& _list,
277 QVector<float>* _depths = 0,
278 QVector<ACG::Vec3d>* _points = 0);
286 const QRegion& _region,
287 QList<QPair<size_t, size_t> >& _list,
288 QVector<float>* _depths = 0,
289 QVector<ACG::Vec3d>* _points = 0);
304 void pickMode (
const std::string& _mode);
470 operator value_handle() {
return pos_; };
482 pointer operator->();
509 inline void proceedToNextBaseObjectData(
BaseObject*& _object);
521 it_(_restriction, _dataType)
526 it_(_pos, _restriction, _dataType)
555 return it_ == _rhs.it_;
559 return it_ != _rhs.it_;
586 restriction_(_restriction),
600 IteratorRestriction restriction_;
616 restriction_(_restriction),
630 IteratorRestriction restriction_;
704 operator value_handle() {
return pos_; };
716 pointer operator->();
816 QWidget * parent = 0,
const QString & caption = QString(),
817 const QString & defaultDir = QString(),
const QString & filter = QString(),
818 QString * selectedFilter = 0, QFileDialog::Options options = 0);
840 QWidget * parent = 0,
const QString & caption = QString(),
841 const QString & defaultDir = QString(),
const QString & filter = QString(),
842 QString * selectedFilter = 0, QFileDialog::Options options = 0,
843 const QString & defaultSuffix = QString() );
ViewObjectMarker * defaultViewObjectMarker()
Get the default ViewObjectMarker.
void allowRotation(bool _mode, int _viewer)
void addGlobalNode(ACG::SceneGraph::BaseNode *_node)
Add a global node.
void shareGLWidget(OFGLWidget *_widget)
Sets the main QGLWidget for gl data sharing.
bool scenegraphPick(ACG::SceneGraph::PickTarget _pickTarget, const QPoint &_mousePos, size_t &_nodeIdx, size_t &_targetIdx, ACG::Vec3d *_hitPointPtr=0)
Execute picking operation on scenegraph.
int getObjectId(const QString &_name)
DLLEXPORT BaseObjectIterator baseObjectsEnd()
Return Iterator to Object End.
int sourceCount()
Get the number of source objects.
bool getAllObjectIdentifiers(std::vector< int > &_identifiers)
Get identifiers of all objects.
QStringList collectObjectComments(bool visibleOnly, bool targetedOnly)
const QStringList SOURCE_OBJECTS("source")
Iterable object range.
QStringList collectObjectMaterials(bool visibleOnly, bool targetedOnly)
unsigned int activeExaminer()
Get the id of the examiner which got the last mouse events.
value_type * pointer
basic pointer type
bool getPickedObject(const size_t _node_idx, BaseObjectData *&_object)
Get the picked mesh.
bool getTargetIdentifiers(std::vector< int > &_identifiers)
Get the identifiers of all objects marked as a target object.
bool objectExists(const int _identifier)
Check if an object with this identifier exists.
BaseObjectData * value_handle
handle type (just an int)
IteratorRestriction restriction_
Restriction of the iterator.
BaseObjectData value_type
type of the Objects the iterator works on
const QStringList TARGET_OBJECTS("target")
Iterable object range.
QStringList IteratorRestriction
Iterable object range.
QPoint mapToGlobal(const QPoint _point)
Map coordinates of GL Widget to global coordinates.
int viewers()
Get the number of viewers.
const QStringList ALL_OBJECTS
Iterable object range.
void setActiveExaminer(const unsigned int _id)
Set the active id of the examiner which got the last mouse events.
int viewerId()
Return unique viewer id.
bool getSourceIdentifiers(std::vector< int > &_identifiers)
Get the identifiers of all objects marked as a source object.
void addObjectRenderingNode(ACG::SceneGraph::BaseNode *_node)
Add scenegraph node modifing object rendering.
ACG::SceneGraph::BaseNode * getRootNode()
Get the root node for data objects.
ActionMode
Enum listing action modes of the viewers.
void getCurrentViewImage(QImage &_image)
Returns a QImage of the current View.
Helper class that wraps an ObjectIterator to return a reference instead of a pointer.
BaseObject * pos_
current position of the iterator
bool getObject(const int _identifier, BaseObject *&_object)
Get the object which has the given identifier.
BaseObject *& objectRoot()
Get the root of the object structure.
void setDefaultViewObjectMarker(ViewObjectMarker *_marker)
void disableExaminerLightHandling()
Disable the core light handling.
Range adapter for ObjectIterator.
DataType dataType_
returned data types of the iterator
void setEncodedExaminerView(QString _view)
Set the encoded view for the active examiner.
bool scenegraphRegionPick(ACG::SceneGraph::PickTarget _pickTarget, const QRegion &_region, QList< QPair< size_t, size_t > > &_list, QVector< float > *_depths, QVector< ACG::Vec3d > *_points)
ObjectReferenceRange objectReferences(IteratorRestriction _restriction, DataType _dataType)
Iterable object range.
value_type * pointer
basic pointer type
BaseObjectData * pos_
current position of the iterator
BaseObjectData * baseObjectData(BaseObject *_object)
Cast an BaseObject to a BaseObjectData if possible.
QString getEncodedExaminerView()
Get the encoded view for the active examiner.
void addGlobalStatusNode(ACG::SceneGraph::BaseNode *_node)
Adds a global status node.
void setSceneCenter(const ACG::Vec3d &_center, int _viewer)
bool getAllMeshes(std::vector< int > &_identifiers)
Get identifiers of all meshes.
DataType dataType_
returned data types of the iterator
IteratorRestriction restriction_
Restriction of the iterator.
int visibleCount()
Get the number of visible objects.
value_type & reference
reference type
PickTarget
What target to use for picking.
DLLEXPORT ObjectIterator objectsEnd()
Return Iterator to Object End.
void setDataRoot(BaseObject *_root)
void setViewObjectMarker(ViewObjectMarker *_marker)
QString getOpenFileName(const QString &configProperty, QWidget *parent, const QString &caption, const QString &defaultDir, const QString &filter, QString *selectedFilter, QFileDialog::Options options)
QPoint mapToLocal(const QPoint _point)
Map global coordinates to GL Widget local coordinates.
Viewer::ActionMode actionMode()
Get the current Action mode.
BaseObject * value_handle
handle type (just an int)
int objectCount()
Get the number of available objects.
Range adapter for ObjectIterator.
const DataType DATA_ALL(UINT_MAX)
Identifier for all available objects.
int targetCount()
Get the number of target objects.
BaseObject value_type
type of the Objects the iterator works on
value_type & reference
reference type
QString getSaveFileName(const QString &configProperty, QWidget *parent, const QString &caption, const QString &defaultDir, const QString &filter, QString *selectedFilter, QFileDialog::Options options, const QString &defaultSuffix)
void traverse(ACG::SceneGraph::MouseEventAction &_action)
ObjectRange objects(IteratorRestriction _restriction, DataType _dataType)
Iterable object range.
bool examinerLightHandling()
returns if internal light handling is active.
ACG::SceneGraph::BaseNode * getSceneGraphRootNode()
get scenegraph root node
const std::string pickMode()
Get the current Picking mode.
Core Data Iterator used to iterate over all objects (Including groups)