DesktopSDK 0.7 - PenData Library (C#) Documentation
ContentsIndexHome
RegionCollection Members
RegionCollection Class  Legend  Public Fields  Public Methods

The following tables list the members exposed by RegionCollection.

 
Name 
Description 
 
 
 
 
 
 
 
 
 
Name 
Description 
 
Adds a shape to a collection. The source shape is consumed by the collection and that pointer is no longer valid. The ID passed should be acquired from a RegionId object (get the long value) or use the implicit cast to (long). 
 
 
 
Immediately frees up the memory used by an object and its children. 
 
 
 
Gets the mimimum RegionId in this collection. 
 
Gets basic memory footprint for the entire collection. Note: This not contain some of the higher-level wrapper objects. 
 
Gets the minimum RegionId in this collection. 
 
Gets the number of shapes in the RegionCollection. 
 
Gets a reference to a shape in the collection for reading. Note: Modifying this object will modify the source object inside the collection. 
 
Gets the total geometric size of objects in the collection. If all objects are strokes, it will give the total length of all strokes together. If all are rectangles, it will give the total area covered by all the rectangles. In mixed cases, results my differ. 
 
Intersects a shape with all the shapes in the collection. Output is a list of intersected RegionIds and intersection types (Intersect class static members). This function is useful to check for overlaps. For example, you can check if a stroke intersects a region on the page. This is exactly the same function that is used in the smartpen for intersection checking. 
 
Merges the collections. Note: It does not make a deep copy, due to performance reasons. Also, the source collection will be destroyed. 
 
This is the overview for the RegionCollection constructor overload. 
 
Removes a shape from a collection. This function is currently half broken. The shape is removed but the returned object is junk. 
 
Save 
Saves a a collection to an OutputStream. 
 
Scales the entire collection around the specificed origo. The scale value is in 16-bit fixed point--i.e., to scale with 1.0 set the scale to 65536. 
 
 
 
Translates the entire RegionCollection. Note: Regions do not support negative coordinates, so translating in the negative direction might have invalid results. 
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.
Copyright © 2010 Livescribe, Inc. All rights reserved.