Model Class

The class represents collections of drawable objects in the ODA Platform framework.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    Teigha.RuntimeDisposableWrapper
      Teigha.RuntimeRXObject
        Teigha.GraphicsSystemModel

Namespace: Teigha.GraphicsSystem
Assembly: TD_Mgd (in TD_Mgd.dll) Version: 26.9.0.0
Syntax
public class Model : RXObject

The Model type exposes the following members.

Constructors
  Name Description
Protected method Model Constructor for the Model class.
Top
Properties
  Name Description
Public property AutoDelete Property that indicates whether the object should be automatically deleted by the Garbage Collector.
(Inherited from DisposableWrapper)
Public property Background Property that represents for the Model object.
Public property EnableLightsInBlocks Property that indicates whether lights in blocks are enabled.
Public property EnableLinetypes Property that indicates whether linetype display is enabled in any View object that views this Model object.
Public property EnableSectioning Property that indicates whether sectioning should be enabled in the views displaying this Model object.
Public property EnableViewExtentsCalculation Property that indicates whether extents calculation for entities inside this Model object is enabled.
Public property IsDisposed Property that indicates whether pointer to native code unmanaged object == IntPtr::Zero.
(Inherited from DisposableWrapper)
Public property RenderModeOverride Property that represents rendering mode override for this Model object. This property can be one of the following: Name Value Description BoundingBox -1 Bounding box. For internal use only. Optimized2D 0 Standard *display*. Optimized for 2D. Wireframe 1 Standard *display*. Uses 3D pipeline. HiddenLine 2 Wireframe *display*. Hidden lines removed. FlatShaded 3 Faceted *display*. One *color* per face. GouraudShaded 4 Smooth shaded *display*. Colors interpolated between *vertices*. FlatShadedWithWireframe 5 Faceted *display* with wireframe overlay. GouraudShadedWithWireframe 6 Smooth shaded *display* with wireframe overlay. None 7 None
Public property RenderType Property that represents render type for this Model object. This property can be one of the following: Name Value Description UserBg1 -3 User-defined background rendering type without Z-buffer. UserBg2 -2 User-defined background rendering type with own Z-buffer. UserBg3 -1 User-defined background rendering type with Z-buffer. Main 0 Use main Z-buffer. Sprite 1 Use alternate Z-buffer (for sprites). Direct 2 Render on device directly. Highlight 3 Render on device directly (skipping frame buffer and Z-buffer). HighlightSelection 4 Render on device directly using highlighting style (skipping frame buffer and Z-buffer). DirectTopmost 5 Render on top of all other render types without Z-buffer. Contrast 6 Render with contrast style.
Public property SectioningVisualStyle Property that represents visual style for the objects on the clipped side of the sectioning.
Public property Selectable Property that indicates whether entities inside this Model object are selectable.
Public property Transform Property that represents the transformation matrix.
Public property UnmanagedObject Property that represents a pointer to an unmanaged object.
(Inherited from DisposableWrapper)
Public property ViewClippingOverride Property that indicates whether view clipping override enabled for this Model object.
Public property ViewSectioningOverride Property that indicates whether view sectioning override is enabled.
Public property VisualStyle Property that represents a visual style for this Model object. By default, models are displayed in the visual style assigned to the view.
Public property VisualStyleId Property that represents object identifier of a visual style for this Model object. By default, models are displayed in the visual style assigned to the view.
Top
Methods
  Name Description
Public method Clone Creates a *clone* of this object, and returns a pointer to the *clone*.
(Inherited from RXObject)
Public method CompareTo Allows classes to compare class objects.
(Inherited from RXObject)
Public method CopyFrom Copies the contents of the specified object into this object.
(Inherited from RXObject)
Public method CreateObjRef
(Inherited from MarshalByRefObject)
Protected method DeleteUnmanagedObject
(Inherited from RXObject)
Public method Dispose
(Inherited from DisposableWrapper)
Protected method Dispose(Boolean)
(Inherited from DisposableWrapper)
Public method Equals Checks objects for equality.
(Inherited from DisposableWrapper)
Protected method Finalize
(Inherited from DisposableWrapper)
Public method GetHashCode Retrieves the object hash code.
(Inherited from DisposableWrapper)
Public method GetLifetimeService
(Inherited from MarshalByRefObject)
Public method GetMetaObject
(Inherited from RXObject)
Public method GetRXClass Gets a class describing instance dynamically associated with this object as the OdRxClass object.
(Inherited from RXObject)
Public method GetType
(Inherited from Object)
Public method Highlight Highlights the specified entity in this Model object.
Public method InitializeLifetimeService
(Inherited from MarshalByRefObject)
Public method Invalidate(InvalidationHint) Invalidates the specified cached data contained in this Model object.
Public method Invalidate(View) Invalidates the specified cached data contained in this Model object.
Protected method MemberwiseClone
(Inherited from Object)
Protected method MemberwiseClone(Boolean)
(Inherited from MarshalByRefObject)
Public method OnAdded(Drawable, Int64) Notification method called whenever a Drawable object is added to this Model object.
Public method OnAdded(Drawable, Drawable) Notification method called whenever a drawable object is added to this Model object.
Public method OnErased(Drawable, Int64) Notification function called whenever a Drawable object is erased from this Model object.
Public method OnErased(Drawable, Drawable) Notification function called whenever a Drawable object is erased from this Model object.
Public method OnModified(Drawable, Int64) Notification function called whenever a Drawable object is modified in this Model object.
Public method OnModified(Drawable, Drawable) Notification function called whenever a drawable object is modified in this Model object.
Public method OnUnerased(Drawable, Int64) Notification function called whenever a Drawable object is unerased from this Model object.
Public method OnUnerased(Drawable, Drawable) Notification function called whenever a drawable object is unerased from this Model object.
Public method QueryX Checks whether the object belongs to the specified class and returns a pointer to this object if this object can be converted to the specified class.
(Inherited from RXObject)
Public method setSectioning(Point3dCollection, Vector3d) Sets the active sectioning for this Model object. After specifying the sectioning, it should be enabled with the EnableSectioning property.
Public method setSectioning(Point3dCollection, Vector3d, Double, Double) Sets the active sectioning for this Model object. The sectioning is capped vertically using the specified top and bottom heights. After specifying the sectioning, it should be enabled with the EnableSectioning property.
Public method ToString
(Inherited from Object)
Public method X Checks whether the object belongs to the specified class and returns a pointer to this object if this object can be converted to the specified class, or throws an exception if it cannot.
(Inherited from RXObject)
Top
See Also

©  Bricsys NV. All rights reserved.