Real-time rasterization class, obtained by the
Scene class. Rasterization refers to the process of converting an image in a vector graphics format into a bitmap. This class can realize real-time rasterization of vector graphics.
| Name | Type | Description |
|---|---|---|
quadtreePrimitive |
PrimitiveCollecton | A collection of quadtree primitives. |
Members
-
Get or set the transparency of the rasterized data (0 is completely transparent)。
-
Get the bounds of the data.
-
Get the height of the canvas.
-
Get the width of the canvas.
Methods
-
Add quasi-rasterized vector objects.
Name Type Description optionsObject A parameter object has the following properties: Name Type Description nameString optional the name of the vector object positionsposition optional The position of the vector object polygonBoundposition optional Vector object polygonal boundary. pickIdposition optional The selection ID of the vector object. fillColorposition optional The fill color of the vector object. lineColorposition optional Line color for vector objects. lineWidthposition optional The lineweight of the vector object. geometryTypeposition optional Geometric Object Types for Live Rasterization RasterGeometryType。Example:
scene.rasterVectorCollection.add({ name : name, pickId : geometry.id, positions : cartographics, fillColor : new SuperMap3D.Color(1.0, 0.0, 0.0, 1.0), lineColor : new SuperMap3D.Color(1.0, 0.0, 1.0, 1.0), lineWidth : 10, geometryType : SuperMap3D.RasterGeometryType.POLYGON }); -
Removes added vector objects by name.
Name Type Description nameString The name of the raster-vector object to remove -
Removes all vector objects.
