Totally Objects Home Page Turtle Graphics

What's New? Products Totally Objects Downloads Other Downloads Consultancy VAST Training
Educational Discounts See what our clients think Buy News Groups Consultant's Pack Contact Us

Visibility Turtle Implementation

Visibility Turtle Settings Explanations
Visibility Turtle Direction Command Explanations Visibility Turtle Command Explanations
Visibility Direction Turtle Commands Visibility Turtle Commands
 

Visibility Turtle Settings

Method Comment
baseMeasurement: anObject Save the value of baseMeasurement. baseMeasurement is the units that define the page. These units may be #pixels - based on the current baseResolution setting #inches #mm
baseResolution: anObject Save the value of baseResolution. This sets the resolution to be used for all pixel measurements. This defaults to 600 @ 600 dpi. This does not affect the resolution of the printer which is set using the printer setup in the normal way. All actual calculations are converted from baseResolution to printer resolution before use.
baseScale: anObject Save the value of baseScale. Currently, this is not implemented.
currentArrowheads Return the value of currentArrowheads. arrowheads can be: #none = no arrowheads #start = arrowhead at the start of the line #end = arrowhead at the end of the line #both = arrowheads at both ends of the line
currentArrowheads: anObject Save the value of currentArrowheads. sets any value other than #start, #end and #both to #none
currentBox: anObject Save the value of currentBox. currentBox defines the extent of any box or word wrapping draw where the extent is not explicitly defined.
currentCircleOrientation: anObject Save the value of currentCircleOrientation. This is not implemented in the current Turtle version. This will be used to enable circle drawing to be based on one of the following: #left - draw in a box with the origin as the left hand top corner of the bounding box; #right - draw in a box with the origin as the right hand top corner of the bounding box; #center - draw in a box with the center point as the center of the bounding box;
currentColor: anObject Save the value of color. This setting is used for all operations involving drawing - text, lines, circles, boxes, polygons. This uses the current palette (see Visibility Color for instructions on changing the palette) of 16 colours.
currentDashes Return the value of currentDashes
currentDashes: anObject Save the value of currentDashes. Currently on the following patterns are accepted: #( 4 4 ) #( 24 8 ) #( 12 8 4 8 ) #( 12 4 4 4 4 4 ) 
currentDashStyle Return the value of currentDashStyle.
currentDashStyle: anObject Save the value of currentDashStyle. Should be true false #none #lineSolid #lineOnOffDash or #lineDoubleDash - see CgValues for explanation. true will be converted to #lineOnOffDash false will be converted to #none any incorrect value will be converted to #none
currentFill: anObject Save the value of currentFill. Used to define the fill policy for any box or circle operation where the fill policy has not been set explicitly. May be true or false - true = filled box/circle.
currentFont: anObject Save the value of currentFont. Sets the current font to be used for all text operations. The content should be a font which exists as an entry in the VisibilityPrint fontArray.
currentImageBox: anObject Save the value of currentImageBox. This defines the extent of the bounding box for any subsequent Image drawing.
currentImageJustification: anObject Save the value of currentImageJustification. Sets the justification of the Image within the bounding box. This follows Visibility Color conventions and allows #normal #stretch #left #right or #tiled
currentLineWidth: anObject Save the value of currentLineWidth.
currentLocation Answers the current Turtle location.
currentShadowWidth: anObject Save the value of currentShadowWidth.
currentTextJustification: anObject Save the value of currentTextJustification. This follows Visibility Color conventions and allows #left #right #center #decimal (only for numbers - otherwise this will result in #right
debugFile: aString Save the value of debugFile. When set to not Nil, this will be used as the path for a text file used to store the logging stream generated by the Turtle. The file name has the format yourFileNameHHMMSS.log where yourFileName is the supplied string in aString.
debugToTranscript: anObject Save the value of debugToTranscript. When set to true, this will enable output of the logging stream generated by the Turtle to the Transcript. The default setting is false.
defaultAngle: anObject Save the value of defaultAngle. If not set, the value is set to 0
defaultArrowheads: anObject Save the value of defaultArrowheads. This is the setting used if currentArrowheads is nil.
defaultBox: anObject Save the value of defaultBox. This is the setting used by currentBox if currentBox is nil.
defaultCircleOrientation: anObject Save the value of defaultCircleOrientation. This is the setting used by currentCircleOrientation if currentCircleOrientation is nil.
defaultColor: anObject Save the value of color. This setting is used for all operations involving drawing - text, lines, circles, boxes, polygons. This uses the current palette (see Visibility Color for instructions on changing the palette) of 16 colours. This is the setting used by currentColor if that has not been set. The value of defaultColor is set to 0 if not set.
defaultDashes: anObject Save the value of defaultDashes.
defaultDashStyle: anObject Save the value of defaultDashStyle.
defaultFill: anObject Save the value of defaultFill. This is the setting used by currentFill if currentFill is nil.
defaultFont: anObject Save the value of defaultFont. This is the setting used by currentFont if currentFont is nil.
defaultImageBox: anObject Save the value of defaultImageBox. This is the setting used by currentImageBox if currentImageBox is nil.
defaultImageJustification: anObject Save the value of defaultImageJustification. This is the setting used by currentImageJustification if currentImageJustification is nil.
defaultLineWidth: anObject Save the value of defaultLineWidth.
defaultShadowWidth: anObject Save the value of defaultShadowWidth.
defaultTextJustification: anObject Save the value of defaultTextJustification. This is the setting used by currentTextJustification if currentTextJustification is nil.
newOrigin: aPoint Sets and answers the origin of the page as being aPoint. From now on all moves will be made relative to the new origin. currentAngle is reset to 0 and the current location is set to 0 @ 0
pageSize Answers the currently defined page size in baseMeasurement units.
pageSize: aPoint Sets and answers the current page size to be aPoint. aPoint should be defined in the units as set by the baseMeasurement setting.
resetAngleDefault Sets the currentAngle to the default setting.
resetArrowheads Resets defaultArrowheads to its default setting.
resetBoxDefault Sets the current box extent to the default setting.
resetCircleOrientation Sets the current circleOrientation to the default setting.
resetColorDefault Sets the current box extent to the default setting.
resetDashes Return the value of currentDashes.
resetDashStyle Return the value of currentDashStyle.
resetFillDefault Sets the current fill to the default setting.
resetFont Sets the current text font to the default setting.
resetImageBox Sets the current image bounding box extent to the default setting.
resetImageJustification Sets the current image justification to the default setting.
resetLineWidthDefault Sets the current box extent to the default setting.
resetTextJustification Sets the current text justification to the default setting.

Back to the top of the page

Back to Totally Objects Home Page

Back to Visibility Turtle Home Page