Graphic2d_Buffer.hxx File Reference

#include <Standard.hxx>
#include <Standard_DefineHandle.hxx>
#include <Handle_Graphic2d_Buffer.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Boolean.hxx>
#include <Handle_Aspect_WindowDriver.hxx>
#include <Standard_ShortReal.hxx>
#include <Aspect_TypeOfDrawMode.hxx>
#include <Graphic2d_ViewPtr.hxx>
#include <Graphic2d_SequenceOfPrimitives.hxx>
#include <Standard_Macro.hxx>
#include <TCollection_BaseSequence.hxx>
#include <Handle_Graphic2d_Primitive.hxx>
#include <Handle_Graphic2d_SequenceNodeOfSequenceOfPrimitives.hxx>
#include <TCollection_Sequence.lxx>
#include <Handle_Graphic2d_GraphicObject.hxx>
#include <Handle_Graphic2d_SequenceNodeOfSequenceOfGraphicObject.hxx>
#include <MMgt_TShared.hxx>
#include <Handle_Graphic2d_View.hxx>
#include <Quantity_Length.hxx>
#include <Quantity_PlaneAngle.hxx>
#include <Quantity_Factor.hxx>
#include <Handle_Graphic2d_ViewMapping.hxx>
#include <Standard_Real.hxx>

Data Structures

class  Graphic2d_Buffer
 This class constructs a 2D graphic buffer in a view. It
manages a set of graphic objects and/or primitives.
To draw the buffer, the following elements are required:

  • the override color
  • the font
  • a solid line type
  • thickness of 1 pixel.
    With this category , the user can drag the geometry
    stored in the buffer without changing the fixed
    background. This mechanism is reserved for the
    special driver Aspect_WindowDriver: if no other
    driver has been defined, nothing will be drawn. Both
    this driver and view mapping are used to draw the buffer.
    Warning
  • This class manages dragging only. It does not
    manage "sketching" or "rubberbanding". For example:
    • There is no empty constructor for this
      primitive. Therefore we must create a primitive
      in a dummy object simply to add this primitive to the buffer.
    • There is no Buffer->Add (anArrayOfPoints)
      method. Therefor it is not possible to add
      shapes to the buffer.
    • There are no Polyline->ChangeApoint () nor
      Circle->ChangeRadius () methods. Therefore
      we must call the primitive's destructor to modify
      the definition of one primitive in a buffer.
  • The Graphic2d_Image class is a primitive. For
    this class, we replace the definition of the image
    with a rectangle with the same size and the same position.
  • You can add or remove primitives to the buffer
    after creating and displaying it again.
More...
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Thu Mar 3 10:39:50 2011 for Open CASCADE Technology by  doxygen 1.6.3