BCGControlBar Pro for MFC
CBCGPDiagramShape

Detailed Description

The CBCGPDiagramShape class is derived from CBCGPDiagramVisualObject and implements a diagram item with the specific shape. It supports the commonly used shapes. The shape can be one of the following:

  • FirstShape = 0,
  • Box = FirstShape,
  • Ellipse = 1,
  • Star = 2,
  • RoundBox = 3,
  • Rhombus = 4,
  • Rectangle = 5,
  • Parallelogram = 6,
  • Trapezoid = 7,
  • Cloud = 8,
  • Custom = 9,
  • LastShape = Custom

To create a custom shape please use CBCGPDiagramCustomShape class or derive a new class from CBCGPDiagramShape or CBCGPDiagramCustomShape.

See also
CBCGPDiagramCustomShape, CBCGPDiagramVisualObject
+ Inheritance diagram for CBCGPDiagramShape:

Public Types

enum  Shape
 
- Public Types inherited from CBCGPDiagramVisualObject
enum  ConnectionPorts
 
enum  Parts
 

Public Member Functions

 CBCGPDiagramShapeConstructor.
 
 CreateGeometryCalled by the framework when a shape geometry is created.
 
 DrawTextDataCalled by the framework to draw the diagram shape text label.
 
 GetShapeGets the shape style.
 
 IsShadowEnabledTells whether shape has the shadow. Override this method and return FALSE if you wish to disable shadow for specific diagram shape.
 
 OnDrawCalled by the framework to draw the diagram shape.
 
 SetShapeSets a shape style.
 
- Public Member Functions inherited from CBCGPDiagramVisualObject
 CBCGPDiagramVisualObjectConstructor.
 
 CBCGPDiagramVisualObjectCopy constructor.
 
 AddTextDataAdds a text data to the diagram item.
 
 DrawConnectionPortsCalled by the framework to draw a connection ports.
 
 GetAllConnectorsGets the list of all item connectors.
 
 GetConnectionPortGets coordinates of the specific connection port.
 
 GetConnectorsGets the list of connectors connected to specified port.
 
 GetFillBrushGets object fill brush.
 
 GetFillColorGets object fill color.
 
 GetItemIDGets item identifier.
 
 GetOutlineBrushGets object outline brush.
 
 GetOutlineColorGets object outline color.
 
 GetParentDiagramGets the parent diagram.
 
 GetPartTextDataRetrieves the text data object of the diagram item.
 
 GetStrokeStyleGets the object stroke style.
 
 GetTextDataGets text data by index.
 
 GetThicknessGets the border thickness.
 
 HasConnectorsTells whether the diagram item has a specific connector(s).
 
 HitTestConnectionPortHits test connection port.
 
 RemoveTextDataRemoves the text data from the diagram item.
 
 SetAutoDestroySpecifies whether the diagram object should be destroyed automatically.
 
 SetFillBrushSets object fill brush.
 
 SetFillColorSets object fill color.
 
 SetItemIDSets an item identifier.
 
 SetOutlineBrushSets object outline brush.
 
 SetOutlineColorSets object outline color.
 
 SetStrokeStyleSets the object border stroke style.
 
 SetTextDataSets text data in the diagram item.
 
 SetThicknessSets the object border thickness.
 
 UseConnectionPortCreates a new anchor point.
 
- Public Member Functions inherited from CBCGPBaseVisualObject
 CBCGPBaseVisualObjectConstructor.
 
 CBCGPBaseVisualObjectCopy constructor.
 
 CopyToClipboardCopies visual object to the Clipboard.
 
 EnableImageCacheEnables or disables visual object image cache.
 
 ExportToBitmapExports the visual object to bitmap.
 
 ExportToFileExports the visual object to a file (BMP or PNG).
 
 ExportToImageExports the visual object to an image.
 
 GetDataGets an internal data object.
 
 GetDataAnimationTypeGets data animation type.
 
 GetDataCountReturns a number of data objects.
 
 GetEditFlagsGets editing flags.
 
 GetIDGets the object identifier.
 
 GetNameGets the object name.
 
 GetParentContainerGets the parent visual container.
 
 GetRectGets the object bounding rectangle.
 
 GetSelectedThemeObtain a currently selected visual theme.
 
 GetUserDataGets user-defined data associated with this object.
 
 GetValueGets the object value.
 
 IsAutoDestroyTells whether this object will be destroyed automatically.
 
 IsEditModeTells whether this object has the edit mode.
 
 IsEnabledTells whether the visual object is enabled.
 
 IsImageCacheTells whether image cache is enabled for this object.
 
 IsSelectedTells whether this object is selected in the parent container.
 
 IsVisibleTells whether the visual object is visible.
 
 RedrawRedraws this object.
 
 RedrawRectRedraws a specified rectangle.
 
 SelectVisualThemeSelect a visual theme created in Visual Designer.
 
 SetAutoDestroySpecifies whether the object should be destroyed automatically.
 
 SetDataAnimationTypeSets data animation type.
 
 SetDirtyInvalidates and redraws a visual object.
 
 SetEditFlagsSets editing flags.
 
 SetIDSets the object identifier.
 
 SetNameSets an object name.
 
 SetSelectedSelects or unselects the object in the parent container.
 
 SetUserDataSets user-defined data associated with this object.
 
 SetValueSets the object value.
 
 SetVisibleShows or hides the visual object.
 

Static Public Attributes

 m_bShadowsEnabledThis global member specifies whether shadow should be enabled or disabled for all shapes in all diagrams.