Package wx :: Package lib :: Package ogl :: Class ControlPoint
[frames | no frames]

Type ControlPoint

     object --+            
              |            
ShapeEvtHandler --+        
                  |        
              Shape --+    
                      |    
         RectangleShape --+
                          |
                         ControlPoint

Known Subclasses:
DividedShapeControlPoint, DivisionControlPoint, LineControlPoint, PolygonControlPoint

Method Summary
  __init__(self, theCanvas, object, size, the_xoffset, the_yoffset, the_type)
  GetAttachmentPosition(self, attachment, nth, no_arcs, line)
Get the position at which the given attachment point should be drawn.
  GetNumberOfAttachments(self)
Get the number of attachment points for this shape.
  OnBeginDragLeft(self, x, y, keys, attachment)
  OnDragLeft(self, draw, x, y, keys, attachment)
  OnDraw(self, dc)
  OnDrawContents(self, dc)
  OnEndDragLeft(self, x, y, keys, attachment)
  OnErase(self, dc)
  SetEraseObject(self, er)
    Inherited from RectangleShape
  GetBoundingBoxMin(self)
Get the minimum bounding box for the shape, that defines the area available for drawing the contents (such as text).
  GetCornerRadius(self)
Get the radius of the rectangle's rounded corners.
  GetHeight(self)
  GetPerimeterPoint(self, x1, y1, x2, y2)
Get the point at which the line from (x1, y1) to (x2, y2) hits the shape.
  GetWidth(self)
  SetCornerRadius(self, rad)
Set the radius of the rectangle's rounded corners.
  SetHeight(self, h)
  SetSize(self, x, y, recursive)
Set the shape's size.
  SetWidth(self, w)
    Inherited from Shape
  __del__(self)
  __str__(self)
  AddLine(self, line, other, attachFrom, attachTo, positionFrom, positionTo)
Add a line between this shape and the given other shape, at the specified attachment points.
  AddRegion(self, region)
Add a region to the shape.
  AddText(self, string)
Add a line of text to the shape's default text region.
  AddToCanvas(self, theCanvas, addAfter)
Add the shape to the canvas's shape list.
  AncestorSelected(self)
TRUE if the shape's ancestor is currently selected.
  ApplyAttachmentOrdering(self, linesToSort)
Apply the line ordering in linesToSort to the shape, to reorder the way lines are attached.
  AssignNewIds(self)
Assign new ids to this image and its children.
  Attach(self, can)
Set the shape's internal canvas pointer to point to the given canvas.
  AttachmentIsValid(self, attachment)
TRUE if attachment is a valid attachment point.
  AttachmentSortTest(self, attachmentPoint, pt1, pt2)
Return TRUE if pt1 is less than or equal to pt2, in the sense that one point comes before another on an edge of the shape.
  CalcSimpleAttachment(self, pt1, pt2, nth, noArcs, line)
Assuming the attachment lies along a vertical or horizontal line, calculate the position on that point.
  ClearAttachments(self)
Clear internal custom attachment point shapes (of class wxAttachmentPoint).
  ClearRegions(self)
Clear the ShapeRegions from the shape.
  ClearText(self, regionId)
Clear the text from the specified text region.
  Delete(self)
Fully disconnect this shape from parents, children, the canvas, etc.
  DeleteControlPoints(self, dc)
Delete the control points (or handles) for the shape.
  Detach(self)
Disassociates the shape from its canvas.
  Draggable(self)
TRUE if the shape may be dragged by the user.
  Draw(self, dc)
Draw the whole shape and any lines attached to it.
  DrawContents(self, dc)
Draw the internal graphic of the shape (such as text).
  DrawLinks(self, dc, attachment, recurse)
Draws any lines linked to this shape.
  Erase(self, dc)
Erase the shape.
  EraseContents(self, dc)
Erase the shape contents, that is, the area within the shape's minimum bounding box.
  EraseLinks(self, dc, attachment, recurse)
Erase links attached to this shape, but do not repair damage caused to other shapes.
  FindRegion(self, name)
Find the actual image ('this' if non-composite) and region id for the given region name.
  FindRegionNames(self)
Get a list of all region names for this image (composite or simple).
  Flash(self)
Flash the shape.
  FormatText(self, dc, s, i)
Reformat the given text region; defaults to formatting the default region.
  GetAttachmentLineCount(self, attachment)
Get the number of lines at this attachment position.
  GetAttachmentMode(self)
Return the attachment mode.
  GetAttachmentPositionEdge(self, attachment, nth, no_arcs, line)
Only get the attachment position at the _edge_ of the shape, ignoring branching mode.
  GetBackgroundBrush(self)
Return brush of the right colour for the background.
  GetBackgroundPen(self)
Return pen of the right colour for the background.
  GetBoundingBoxMax(self)
Get the maximum bounding box for the shape, taking into account external features such as shadows.
  GetBranchingAttachmentInfo(self, attachment)
Get information about where branching connections go.
  GetBranchingAttachmentPoint(self, attachment, n)
  GetBranchingAttachmentRoot(self, attachment)
Get the root point at the given attachment.
  GetBranchStyle(self)
  GetBrush(self)
Return the brush used for filling the shape.
  GetCanvas(self)
Get the internal canvas.
  GetCentreResize(self)
TRUE if the shape is to be resized from the centre (the centre stands still), or FALSE if from the corner or side being dragged (the other corner or side stands still)
  GetChildren(self)
Return the list of children for this shape.
  GetClassName(self)
  GetDisableLabel(self)
TRUE if the default region will not be shown, FALSE otherwise.
  GetDrawHandles(self)
Return the list of drawhandles.
  GetEventHandler(self)
Return the event handler for this shape.
  GetFixedHeight(self)
TRUE if the shape cannot be resized in the vertical plane.
  GetFixedSize(self)
Return flags indicating whether the shape is of fixed size in either direction.
  GetFixedWidth(self)
TRUE if the shape cannot be resized in the horizontal plane.
  GetFont(self, regionId)
Get the font for the specified text region.
  GetFormatMode(self, regionId)
  GetId(self)
Return the integer identifier for this shape.
  GetLinePosition(self, line)
Get the zero-based position of line in the list of lines for this shape.
  GetLines(self)
Return the list of lines connected to this shape.
  GetMaintainAspectRatio(self)
TRUE if shape keeps aspect ratio during resize.
  GetNumberOfTextRegions(self)
Return the number of text regions for this shape.
  GetParent(self)
Return the parent of this shape, if it is part of a composite.
  GetPen(self)
Return the pen used for drawing the shape's outline.
  GetRegionId(self, name)
Get the region's identifier by name.
  GetRegionName(self, regionId)
Get the region's name.
  GetRegions(self)
Return the list of ShapeRegions.
  GetRotation(self)
Return the angle of rotation in radians.
  GetSensitivityFilter(self)
Return the sensitivity filter, a bitlist of values.
  GetShadowMode(self)
Return the current shadow mode setting
  GetSpaceAttachments(self)
Return whether lines should be spaced out evenly at the point they touch the node (True), or whether they should join at a single point (False).
  GetTextColour(self, regionId)
Get the colour for the specified text region.
  GetTopAncestor(self)
Return the top-most ancestor of this shape (the root of the composite).
  GetX(self)
Get the x position of the centre of the shape.
  GetY(self)
Get the y position of the centre of the shape.
  HasDescendant(self, image)
TRUE if image is a descendant of this composite.
  HitTest(self, x, y)
Given a point on a canvas, returns TRUE if the point was on the shape, and returns the nearest attachment point and distance from the given point and target.
  InsertInCanvas(self, theCanvas)
Insert the shape at the front of the shape list of canvas.
  IsHighlighted(self)
TRUE if the shape is highlighted.
  IsShown(self)
TRUE if the shape is in a visible state, FALSE otherwise.
  LogicalToPhysicalAttachment(self, logicalAttachment)
Rotate the standard attachment point from logical to physical (0 is always North).
  MakeControlPoints(self)
Make a list of control points (draggable handles) appropriate to the shape.
  MakeMandatoryControlPoints(self)
Make the mandatory control points.
  Move(self, dc, x, y, display)
Move the shape to the given position.
  MoveLineToNewAttachment(self, dc, to_move, x, y)
Move the given line (which must already be attached to the shape) to a different attachment point on the shape, or a different order on the same attachment.
  MoveLinks(self, dc)
Redraw all the lines attached to the shape.
  NameRegions(self, parentName)
Make unique names for all the regions in a shape or composite shape.
  OnBeginDragRight(self, x, y, keys, attachment)
  OnChangeAttachment(self, attachment, line, ordering)
  OnDragRight(self, draw, x, y, keys, attachment)
  OnDrawBranches(self, dc, erase)
  OnDrawBranchesAttachment(self, dc, attachment, erase)
  OnDrawControlPoints(self, dc)
  OnDrawOutline(self, dc, x, y, w, h)
  OnEndDragRight(self, x, y, keys, attachment)
  OnEraseContents(self, dc)
  OnEraseControlPoints(self, dc)
  OnHighlight(self, dc)
  OnLeftClick(self, x, y, keys, attachment)
  OnMoveLinks(self, dc)
  OnMovePre(self, dc, x, y, old_x, old_y, display)
  OnRightClick(self, x, y, keys, attachment)
  OnSize(self, x, y)
  OnSizingBeginDragLeft(self, pt, x, y, keys, attachment)
  OnSizingDragLeft(self, pt, draw, x, y, keys, attachment)
  OnSizingEndDragLeft(self, pt, x, y, keys, attachment)
  PhysicalToLogicalAttachment(self, physicalAttachment)
Rotate the standard attachment point from physical (0 is always North) to logical (0 -> 1 if rotated by 90 degrees)
  Recentre(self, dc)
Do recentring (or other formatting) for all the text regions for this shape.
  Recompute(self)
Recomputes any constraints associated with the shape.
  RemoveFromCanvas(self, theCanvas)
Remove the shape from the canvas.
  RemoveLine(self, line)
Remove the given line from the shape's list of attached lines.
  ResetControlPoints(self)
Reset the positions of the control points (for instance when the shape's shape has changed).
  ResetMandatoryControlPoints(self)
Reset the mandatory control points.
  Rotate(self, x, y, theta)
Rotate about the given axis by the given amount in radians.
  Select(self, select, dc)
Select or deselect the given shape, drawing or erasing control points (handles) as necessary.
  Selected(self)
TRUE if the shape is currently selected.
  SetAttachmentMode(self, mode)
Set the attachment mode.
  SetAttachmentSize(self, w, h)
  SetBrush(self, the_brush)
Set the brush for filling the shape's shape.
  SetCanvas(self, theCanvas)
Identical to Shape.Attach.
  SetCentreResize(self, cr)
Specify whether the shape is to be resized from the centre (the centre stands still) or from the corner or side being dragged (the other corner or side stands still).
  SetDefaultRegionSize(self)
Set the default region to be consistent with the shape size.
  SetDisableLabel(self, flag)
Set flag to TRUE to stop the default region being shown.
  SetDraggable(self, drag, recursive)
Set the shape to be draggable or not draggable.
  SetDrawHandles(self, drawH)
Set the drawHandles flag for this shape and all descendants.
  SetEventHandler(self, handler)
Set the event handler for this shape.
  SetFixedSize(self, x, y)
Set the shape to be fixed size.
  SetFont(self, the_font, regionId)
Set the font for the specified text region.
  SetFormatMode(self, mode, regionId)
Set the format mode of the default text region.
  SetHighlight(self, hi, recurse)
Set the highlight for a shape.
  SetId(self, i)
Set the integer identifier for this shape.
  SetMaintainAspectRatio(self, ar)
Set whether a shape that resizes should not change the aspect ratio (width and height should be in the original proportion).
  SetParent(self, p)
  SetPen(self, the_pen)
Set the pen for drawing the shape's outline.
  SetRegionName(self, name, regionId)
Set the name for this region.
  SetRotation(self, rotation)
  SetSensitivityFilter(self, sens, recursive)
Set the shape to be sensitive or insensitive to specific mouse operations.
  SetShadowMode(self, mode, redraw)
Set the shadow mode (whether a shadow is drawn or not).
  SetShape(self, sh)
  SetSpaceAttachments(self, sp)
Indicate whether lines should be spaced out evenly at the point they touch the node (sp = True), or whether they should join at a single point (sp = False).
  SetTextColour(self, the_colour, regionId)
Set the colour for the specified text region.
  SetX(self, x)
Set the x position of the shape.
  SetY(self, y)
Set the y position of the shape.
  Show(self, show)
Set a flag indicating whether the shape should be drawn.
  SortLines(self, attachment, linesToSort)
Reorder the lines coming into the node image at this attachment position, in the order in which they appear in linesToSort.
    Inherited from ShapeEvtHandler
  GetPreviousHandler(self)
  GetShape(self)
  OnBeginSize(self, w, h)
  OnDelete(self)
  OnEndSize(self, w, h)
  OnLeftDoubleClick(self, x, y, keys, attachment)
  OnMoveLink(self, dc, moveControlPoints)
  OnMovePost(self, dc, x, y, old_x, old_y, display)
  SetPreviousHandler(self, handler)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
Return hash(x)...
  __new__(T, S, ...)
Return a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
Return repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Class Variable Summary
    Inherited from Shape
bool GraphicsInSizeToContents = False

Method Details

GetAttachmentPosition(self, attachment, nth=0, no_arcs=1, line=None)

Get the position at which the given attachment point should be drawn.

If attachment isn't found among the attachment points of the shape, returns None.

Overrides:
wx.lib.ogl.Shape.GetAttachmentPosition (inherited documentation)

GetNumberOfAttachments(self)

Get the number of attachment points for this shape.

Overrides:
wx.lib.ogl.Shape.GetNumberOfAttachments (inherited documentation)

Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 16:43:05 2007 http://epydoc.sf.net