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 optionsObject The 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 borders. pickIdposition optional The selection ID of the vector object. fillColorposition optional The fill color of the vector object. lineColorposition optional Line color of vector object. lineWidthposition optional The line width of the vector object. geometryTypeposition 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 nameString The name of the raster vector object to be removed -
Remove all vector objects.
