C++
virtual bool add( AcGiDrawable * drawable, AcGsModel * model ) = 0;
Description
This method specifies which portions of which models are viewed by this view. The proper way to employ this function is to construct a directed acyclic graph (the scene graph) of AcGiDrawable objects, each of which tells the Graphic System to draw its children by using AcGiGeometry::draw(). Add the root of this graph (an AcGiDrawable) and the AcGsModel that handles its notifications with this method. This method always returns true.
AutoCAD AcGsView objects typically view four drawables: the modelspace block, the UCS Icon, the grid, and the compass.
Parameters
Parameters | Description |
---|---|
drawable | Input root of scene graph |
model | Input model to which all notifications for the above scene graph are directed |