Real-time rasterization class, obtained by class
Scene
. Rasterization refers to the process of converting an imagery in a vector graphic 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
-
Gets or sets the transparency of the rasterized data (0 is completely transparent).
-
Get the boundary of the data.
-
Get the height of the canvas.
-
Get the width of the canvas.
Methods
-
Add vector objects to be rasterized.
Name Type Description options
Object The parameter object has the following properties: Name Type Description name
String optional The name of the vector object positions
position optional The position of the vector object polygonBound
position optional Vector object polygonal borders. pickId
position optional The selection ID of the vector object. fillColor
position optional The fill color of the vector object. lineColor
position optional Line color of vector object. lineWidth
position optional The line width of the vector object. geometryType
position optional Real-time rasterized geometric object type RasterGeometryType
.Example:
scene.rasterVectorCollection.add({ name : name, pickId : geometry.id, positions : cartographics, fillColor : new Cesium.Color(1.0, 0.0, 0.0, 1.0), lineColor : new Cesium.Color(1.0, 0.0, 1.0, 1.0), lineWidth : 10, geometryType : Cesium.RasterGeometryType.POLYGON });
-
Remove the added vector object based on the name.
Name Type Description name
String The name of the raster vector object to be removed -
Remove all vector objects.