Aimsun Next Scripting
22
|
Public Types | |
enum | GKHitModifier { eAll , eSelected , eUnselected } |
enum | GKFloatingStringRelativePos { eAuto , eCenter , eLeft , eRight , eTop , eBottom } |
Public Member Functions | |
if (base) | |
Py_END_ALLOW_THREADS End | GView (QWidget *parent=0, Qt::WindowFlags fl=Qt::WindowFlags()) |
virtual GDrawer * | findDrawer (const GKGeoObject *key) const |
virtual GDrawer * | removeDrawer (const GKGeoObject *key)=0 |
virtual void | invalidate () |
virtual const QHash< GKGeoObject *, GDrawer * > & | getDrawers () const =0 |
virtual GDrawerHit * | findClicked (const QPointF &, GKHitModifier=eAll, bool=false) |
virtual QVector< GDrawerHit * > | multiFindClicked (const QPointF &, GKHitModifier, bool=false) |
virtual GDrawerHit * | findClickedByType (const QPointF &p, GKType *type, GKHitModifier=eAll, bool=false) |
virtual void | selectAll () |
virtual void | inverseSelection () |
virtual void | populate ()=0 |
GKContext & | getTimeContext () |
void | setTimeContext (const GKContext &) |
GKViewMode * | getMode () const |
virtual void | setMode (GKViewMode *) |
virtual void | panToObject (const GKGeoObject *) |
virtual void | setFloatingString (const QString &, const GKPoint &, GKFloatingStringRelativePos=eRight) |
GGui & | getGui () |
GKGeoModel & | getGeoModel () |
GKProblemNet * | getFilter () const |
virtual void | setFilter (GKProblemNet *) |
virtual GKPoint | screen2World (const QPointF &) const =0 |
virtual bool | saveSnapshot (const QString &, const char *, GKBBox, int=-1, int=-1, bool=true) |
Public Attributes | |
ConvertToSubClassCode Py_BEGIN_ALLOW_THREADS GView * | base = (GView*)( sipCpp ) |
sipType = 0 | |
enum GView::GKHitModifier |
Py_END_ALLOW_THREADS End GView::GView | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | fl = Qt::WindowFlags() |
||
) |
|
virtual |
Find an object (and only object) in where the point dp its interior to it. The modifier can be used to look only on:
Also an additional parameter to extend the search to non_editable layers can be specified.
This method stops when it founds the first suitable object. On a 2D View the layer order is used (top layers are used first).
Reimplemented in G2DView.
|
virtual |
Find an object (and only object) of type "type" in where the point dp its interior to it. The modifier can be used to look only on:
Also an additional parameter to extend the search to non_editable layers can be specified.
On a 2D View the layer order is used (top layers are used first).
|
virtual |
Find a drawer in this view. Can return None
|
pure virtual |
Returns the list of all the drawers in this view
GKProblemNet * GView::getFilter | ( | ) | const |
GKGeoModel & GView::getGeoModel | ( | ) |
GGui & GView::getGui | ( | ) |
GKViewMode * GView::getMode | ( | ) | const |
GKContext & GView::getTimeContext | ( | ) |
Time context for this view: it uses only Now to know what time dependad information must be displayed on this view.
|
inline |
References base, GKSystem::getSystem(), and sipType.
|
virtual |
Marks this view as invalid forcing a redraw.
Reimplemented in G2DView.
|
virtual |
Inverses the current selection. Objects selected will be unselected and objects unselecteds will be selected. Note that a drawer can refuse a selection, so this command will not affected it.
Reimplemented in G2DView.
|
virtual |
Find all the objects in where the point dp its interior to it. The modifier can be used to look only on:
Also an additional parameter to extend the search to non_editable layers can be specified.
Reimplemented in G2DView.
|
virtual |
Makes the object key visible and centered in the view.
Reimplemented in G2DView.
|
pure virtual |
Create drawers for all the objects in the geo model and add them to the view.
|
pure virtual |
Removes a drawer from the list of drawers for a specific object and returns it. The drawer is not deleted.
|
virtual |
Saves a snapshot of this view
Reimplemented in G2DView.
|
virtual |
Select all the geo objects. This command uses the drawers in this view in order to know which objects can be selected. Note that a drawer can make non selectable an object and that this setting is per view and not per model.
Reimplemented in G2DView.
|
virtual |
Reimplemented in G2DView.
|
virtual |
Shows a text over the view objects.
|
virtual |
void GView::setTimeContext | ( | const GKContext & | ) |
Sets the time context for this view: it uses only Now to know what time dependad information must be displayed on this view.
Referenced by if().
GView::sipType = 0 |
Referenced by if().