sgCScene

 

The Scene concept is actually the objects container in the sgCore library. There are two object lists in a scene - the list of all scene objects and the list of the selected objects.

Besides storing objects in a scene you can save a scene to a file (and load the saved scene as well) and keep the history of working with a scene (Undo-Redo).

You can both add objects to the scene and delete them from the scene. If you added an object to the scene you can't call the DeleteObject method for this object.

 

 

In the current sgCore library version an object of the sgCScene class is actually a global object and is created in the sgInitKernel function. To access this global object you can use the static function - GetScene.

 

The sgCScene class methods:

GetScene

GetObjectsList

GetSelectedObjectsList

AttachObject

DetachObject

StartUndoGroup

EndUndoGroup

IsUndoStackEmpty

IsRedoStackEmpty

Undo

Redo

Clear

GetGabarits