An IDLgrClipboard object will send Object Graphics output to the operating system native clipboard in bitmap format. The format of bitmaps sent to the clipboard is operating system dependent: output is stored as a PICT image on the Macintosh, as a device-independent bitmap under Windows, and as an Encapsulated PostScript (EPS) image under Unix and VMS.
The IDLgrClipboard:: Cleanup procedure method performs all cleanup on the object. IDLgrClipboard is described above.
NOTE: Cleanup methods are special lifecycle methods , and as such cannot be called outside the context of object destruction. This means that in most cases, you cannot call the Cleanup method directly. There is one exception to this rule: If you write your own subclass of this class, you can call the Cleanup method from within the Cleanup method of the subclass.
The IDLgrClipboard:: Draw procedure method draws the given picture to this graphics destination. IDLgrClipboard is described above.
The view (an instance of an IDLgrView object), viewgroup (an instance of an IDLgrViewgroup object) or scene (an instance of an IDLgrScene object) to be drawn.
The IDLgrClipboard:: GetContiguousPixels function method returns an array of long integers whose length is equal to the number of colors available in the index color mode (that is, the value of the N_COLORS property).
The returned array marks contiguous pixels with the ranking of the range's size. This means that within the array, the elements in the largest available range are set to zero, the elements in the second-largest range are set to one, etc. Use this range to set an appropriate colormap for use with the SHADE_RANGE property of the IDLgrSurface and IDLgrPolygon object classes.
To get the largest contiguous range, you could use the following IDL command:
result = obj -> GetContiguousPixels()
A contiguous region in the colormap can be increasing or decreasing in values. The following would be considered contiguous:
IDLgrClipboard is described above.
The IDLgrClipboard:: GetProperty procedure method retrieves the value of a property or group of properties for the clipboard buffer. IDLgrClipboard is described above.
Any keyword to IDLgrClipboard::Init
The IDLgrClipboard:: GetTextDimensions function method retrieves the dimensions of a text object that will be rendered in the clipboard buffer. The result is a 3-element floating-point vector [ xDim , yDim , zDim ] representing the dimensions of the text object, measured in data units. IDLgrClipboard is described above.
Set this keyword equal to a named variable that will contain an array of floating-point values (one for each string in the IDLgrText object). The values represent the distance to travel (parallel to the UPDIR vector) from the text baseline to reach the bottom of the lowest descender in the string. All values will be negative numbers, or zero. This keyword is valid only if TextObj is an IDLgrText object.
The IDLgrClipboard:: Init function method initializes the clipboard object. IDLgrClipboard is described above.
NOTE: Init methods are special lifecycle methods , and as such cannot be called outside the context of object creation. This means that in most cases, you cannot call the Init method directly. There is one exception to this rule: If you write your own subclass of this class, you can call the Init method from within the Init method of the subclass.
Obj = OBJ_NEW('IDLgrClipboard')
Result =
Obj
->
[IDLgrClipboard::]
Init(
) (
In a subclass' Init method only
.)
Properties retrievable via IDLgrClipboard::GetProperty
Set this keyword to a two-element vector of the form [ width , height ] to specify the dimensions of the clipboard buffer in units specified by the UNITS property. The default is [640,480].
Set this keyword to an object reference of type IDLgrScene, IDLgrViewgroup, or IDLgrView. If this property is set to a valid object reference, calling the Draw method on the destination object with no arguments will cause the object reference associated with this property to be drawn. If this object is valid and the destination object is destroyed, this object reference will be destroyed as well. By default the GRAPHICS_TREE property is set equal to the null-object.
Set this keyword to the number of colors (between 2 and 256) to be used if COLOR_MODEL is set to Color Index.
Set this keyword to the object reference of a palette object (an instance of the IDLgrPalette object class) to specify the red, green, and blue values that are to be loaded into the clipboard buffer's color lookup table.
Set this keyword to an integer indicating the rendering quality at which graphics are to be drawn to the clipboard buffer. Valid values are:
Set this keyword to a two-element vector of the form [ xres , yres ] specifying the device resolution in centimeters per pixel. The default value is: [0.0352778, 0.0352778] (72 DPI).
Set this keyword to indicate the units of measure for the DIMENSIONS property. Valid values are:
Set this keyword to a value of any type. You can use this "user value" to contain any information you wish. Remember that if you set the user value equal to a pointer or object reference, you should destroy the pointer or object reference explicitly when destroying the object it is a user value of.
The IDLgrClipboard::SetProperty procedure method sets the value of a property or group of properties for the clipboard buffer. IDLgrClipboard is described above.
Any keyword to IDLgrClipboard::Init