|
CGAL 5.0 - Three
|
#include <CGAL/Three/Scene_interface.h>
Inherited by Scene.
This is the class given to the plugins to interact with the scene.
Public Types | |
| typedef CGAL::Bbox_3 | Bbox |
| A bounding box is a box with each face corresponding to an extremum of its contents. | |
| typedef int | Item_id |
| Integer used as the index of a Scene_item. More... | |
Public Member Functions | |
| virtual Item_id | addItem (CGAL::Three::Scene_item *item)=0 |
| Adds an item to the Geometric Objects list. More... | |
| virtual void | addChild (Scene_item *item)=0 |
| Adds a CGAL::Three::Scene_item* to the list of children. | |
| virtual Scene_item * | replaceItem (Item_id id, CGAL::Three::Scene_item *item, bool emit_item_about_to_be_destroyed=false)=0 |
| Replaces an item by a new one in the scene. More... | |
| virtual void | changeGroup (CGAL::Three::Scene_item *item, CGAL::Three::Scene_group_item *target_group)=0 |
| Moves item to the targeted group. | |
| virtual Item_id | erase (Item_id)=0 |
| Erases an item in the list. More... | |
| virtual int | erase (QList< int >)=0 |
| Deletes the items with the target indices. More... | |
| virtual Item_id | duplicate (Item_id id)=0 |
Creates a copy of the item whith the id id. More... | |
| virtual int | numberOfEntries () const =0 |
| The number of items. More... | |
| virtual CGAL::Three::Scene_item * | item (Item_id id) const =0 |
The idth item. More... | |
| virtual Item_id | item_id (CGAL::Three::Scene_item *item) const =0 |
The id of item More... | |
| virtual Item_id | mainSelectionIndex () const =0 |
| The currently selected item's index. More... | |
| virtual QList< Item_id > | selectionIndices () const =0 |
| The id of the currently selected item. More... | |
| virtual Item_id | selectionAindex () const =0 |
| Item_A is designated with the column A/B in the Geometric Objetcts widget. More... | |
| virtual Item_id | selectionBindex () const =0 |
| Item_B is designated with the column A/B in the Geometric Objetcts widget. More... | |
| virtual Bbox | bbox () const =0 |
| The scene's Bbox. More... | |
| virtual double | len_diagonal () const =0 |
| The length of the diagonal of the scene's Bbox. More... | |
| virtual void | itemChanged (Item_id i)=0 |
Updates the information about the ith item in the Geometric Objects list and redraws the scene. More... | |
| virtual void | itemChanged (CGAL::Three::Scene_item *item)=0 |
Updates the information about item in the Geometric Objects list and redraws the scene. More... | |
| virtual void | itemVisibilityChanged (CGAL::Three::Scene_item *)=0 |
| Re computes the scene Bbox without recentering it. | |
| virtual void | setSelectedItem (Item_id)=0 |
| Clears the current selection then sets the selected item to the target index. More... | |
| virtual void | setUpdatesEnabled (bool b)=0 |
| ignore data updating. More... | |
| virtual void | allItemsChanged ()=0 |
| Updates all the items in the SceneView. | |
| typedef int CGAL::Three::Scene_interface::Item_id |
Integer used as the index of a Scene_item.
An item's index is its position in the Geometric Objects list.
|
pure virtual |
Adds an item to the Geometric Objects list.
|
pure virtual |
Creates a copy of the item whith the id id.
Erases an item in the list.
|
pure virtual |
Deletes the items with the target indices.
|
pure virtual |
The idth item.
|
pure virtual |
The id of item
|
pure virtual |
Updates the information about the ith item in the Geometric Objects list and redraws the scene.
|
pure virtual |
Updates the information about item in the Geometric Objects list and redraws the scene.
|
pure virtual |
The length of the diagonal of the scene's Bbox.
|
pure virtual |
The currently selected item's index.
|
pure virtual |
The number of items.
|
pure virtual |
Replaces an item by a new one in the scene.
The item which id is id is replaced by item. The first one is deleted and gives its index to the second one. If emit_item_about_to_be_destroyed is true, emits an itemAboutToBeDestroyed signal.
|
pure virtual |
Item_A is designated with the column A/B in the Geometric Objetcts widget.
|
pure virtual |
Item_B is designated with the column A/B in the Geometric Objetcts widget.
|
pure virtual |
The id of the currently selected item.
|
pure virtual |
Clears the current selection then sets the selected item to the target index.
Used to update the selection in the Geometric Objects view.
|
pure virtual |
ignore data updating.
This will ignore all the individual calls to itemChanged() until setUpdatesEnabled() is called whith b being true.