cesiumpy.entities package¶
Submodules¶
-
class
cesiumpy.entities.cartesian.
Cartesian2
(x, y, degrees=False)¶ Bases:
cesiumpy.entities.cartesian._Cartesian
-
classmethod
fromDegrees
(x, y)¶
-
classmethod
maybe
(x, degrees=False)¶ Convert list or tuple to Cartesian2
-
x
¶ A float trait.
-
y
¶ A float trait.
-
classmethod
-
class
cesiumpy.entities.cartesian.
Cartesian3
(x, y, z, degrees=False)¶ Bases:
cesiumpy.entities.cartesian._Cartesian
-
classmethod
fromDegrees
(x, y, z)¶
-
classmethod
fromDegreesArray
(x)¶
-
classmethod
maybe
(x, degrees=False)¶ Convert list or tuple to Cartesian3
-
x
¶ A float trait.
-
y
¶ A float trait.
-
z
¶ A float trait.
-
classmethod
-
class
cesiumpy.entities.cartesian.
Cartesian3Array
(x)¶ Bases:
cesiumpy.entities.cartesian._Cartesian
-
class
cesiumpy.entities.cartesian.
Cartesian4
(x, y, z, w, degrees=False)¶ Bases:
cesiumpy.entities.cartesian._Cartesian
-
classmethod
fromDegrees
(x, y, z, w)¶
-
classmethod
maybe
(x, degrees=False)¶ Convert list or tuple to Cartesian4
-
w
¶ A float trait.
-
x
¶ A float trait.
-
y
¶ A float trait.
-
z
¶ A float trait.
-
classmethod
-
class
cesiumpy.entities.cartesian.
Rectangle
(west, south, east, north, degrees=False)¶ Bases:
cesiumpy.entities.cartesian._Cartesian
-
east
¶ A float trait.
-
classmethod
fromDegrees
(west, south, east, north)¶
-
classmethod
maybe
(x)¶
-
north
¶ A float trait.
-
script
¶
-
south
¶ A float trait.
-
west
¶ A float trait.
-
-
class
cesiumpy.entities.color.
Color
(red, green, blue, alpha=None)¶ Bases:
cesiumpy.entities.material.Material
-
alpha
¶ A float trait.
-
blue
¶ A float trait.
-
copy
()¶
-
classmethod
fromAlpha
(color, alpha)¶
-
classmethod
fromBytes
(red=255, green=255, blue=255, alpha=None)¶ Creates a new Color specified using red, green, blue, and alpha values that are in the range of 0 to 255, converting them internally to a range of 0.0 to 1.0.
- red: int, default 255
- The red component.
- green: int, default 255
- The green component.
- blue: int, default 255
- The blue component.
- alpha: int, default None
- The alpha component.
-
classmethod
fromCssColorString
(color)¶ Creates a Color instance from a CSS color value.
- color: str
- The CSS color value in #rgb, #rrggbb, rgb(), rgba(), hsl(), or hsla() format.
-
classmethod
fromString
(color)¶ Creates a Color instance from a CSS color value. Shortcut for Color.fromCssColorString.
- color: str
- The CSS color value in #rgb, #rrggbb, rgb(), rgba(), hsl(), or hsla() format.
-
green
¶ A float trait.
-
classmethod
maybe
(x)¶ Convert str or tuple to ColorConstant
-
red
¶ A float trait.
-
script
¶
-
set_alpha
(alpha)¶
-
withAlpha
(alpha)¶
-
-
class
cesiumpy.entities.color.
ColorConstant
(name, alpha=None)¶
-
class
cesiumpy.entities.color.
ColorFactory
¶ Bases:
object
-
Color
¶ return Color class
-
choice
()¶ Randomly returns a single color.
-
get_cmap
(name)¶
-
sample
(n)¶ Randomly returns list of colors which length is n.
-
-
class
cesiumpy.entities.color.
ColorMap
(name)¶ Bases:
cesiumpy.base._CesiumObject
-
name
¶ A trait for unicode strings.
-
-
class
cesiumpy.entities.color.
CssColor
(name, alpha=None)¶ Bases:
cesiumpy.entities.color.Color
-
alpha
¶ A float trait.
-
copy
()¶
-
name
¶ A trait for unicode strings.
-
script
¶
-
-
class
cesiumpy.entities.entity.
Billboard
(position, image=None, show=None, scale=None, horizontalOrigin=None, verticalOrigin=None, eyeOffset=None, pixelOffset=None, rotation=None, alignedAxis=None, width=None, height=None, color=None, scaleByDistance=None, translucencyByDistance=None, pixelOffsetScaleByDistance=None, imageSubRegion=None, sizeInMeters=None, name=None)¶ Bases:
cesiumpy.entities.entity._CesiumEntity
PointGraphics
- position : Cartesian3
- A Property specifying the Cartesian3 positions.
- image : str or Pin, default Pin()
- A Property specifying the Image, URI, or Canvas to use for the billboard.
- show : bool, default True
- A boolean Property specifying the visibility of the billboard.
- scale : float, default 1.
- A numeric Property specifying the scale to apply to the image size.
- horizontalOrigin : HorizontalOrigin, default HorizontalOrigin.CENTER
- A Property specifying the HorizontalOrigin.
- verticalOrigin : VerticalOrigin, default VerticalOrigin.CENTER
- A Property specifying the VerticalOrigin.
- eyeOffset : Cartesian3, default Cartesian3.ZERO
- A Cartesian3 Property specifying the eye offset.
- pixelOffset : Cartesian2, default Cartesian2.ZERO
- A Cartesian2 Property specifying the pixel offset.
- rotation : float, default 0.
- A numeric Property specifying the rotation about the alignedAxis.
- alignedAxis : Cartesian3, default Cartesian3.ZERO
- A Cartesian3 Property specifying the axis of rotation.
- width : float
- A numeric Property specifying the width of the billboard in pixels, overriding the native size.
- height : float
- A numeric Property specifying the height of the billboard in pixels, overriding the native size.
- color : Color, default Color.WHITE
- A Property specifying the tint Color of the image.
- scaleByDistance :
- A NearFarScalar Property used to scale the point based on distance from the camera.
- translucencyByDistance :
- optional A NearFarScalar Property used to set translucency based on distance from the camera.
- pixelOffsetScaleByDistance :
- optional A NearFarScalar Property used to set pixelOffset based on distance from the camera.
- imageSubRegion :
- A Property specifying a BoundingRectangle that defines a sub-region of the image to use for the billboard, rather than the entire image.
- sizeInMeters : bool
- A boolean Property specifying whether this billboard’s size should be measured in meters.
-
image
¶ A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
-
class
cesiumpy.entities.entity.
Box
(position, dimensions, show=None, fill=None, material=None, outline=None, outlineColor=None, outlineWidth=None, name=None)¶ Bases:
cesiumpy.entities.entity._CesiumEntity
BoxGraphics
- position : Cartesian3
- A Property specifying the Cartesian3 positions.
- dimensions : Cartesian3
- A Cartesian3 Property specifying the length, width, and height of the box.
- show : bool, default True
- A boolean Property specifying the visibility of the box.
- fill : bool, default True
- A boolean Property specifying whether the box is filled with the provided material.
- material : cesiumpy.cesiumpy.color.Color, default WHITE
- A Property specifying the material used to fill the box.
- outline : bool, default False
- A boolean Property specifying whether the box is outlined.
- outlineColor : cesiumpy.cesiumpy.color.Color, default BLACK
- A Property specifying the Color of the outline.
- outlineWidth : float, default 1.
- A numeric Property specifying the width of the outline.
-
dimensions
¶
-
class
cesiumpy.entities.entity.
Corridor
(positions, width, cornerType=None, height=None, extrudedHeight=None, show=None, fill=None, material=None, outline=None, outlineColor=None, outlineWidth=None, granularity=None, name=None)¶ Bases:
cesiumpy.entities.entity._CesiumEntity
CorridorGraphics
- positions : Cartesian3
- A Property specifying the array of Cartesian3 positions that define the centerline of the corridor.
- width : float
- A numeric Property specifying the distance between the edges of the corridor.
- cornerType : CornerType, default CornerType.ROUNDED
- A CornerType Property specifying the style of the corners.
- height : float, default 0.
- A numeric Property specifying the altitude of the corridor.
- extrudedHeight : float, default 0.
- A numeric Property specifying the altitude of the corridor extrusion.
- show : bool, default True
- A boolean Property specifying the visibility of the corridor.
- fill : bool, default True
- A boolean Property specifying whether the corridor is filled with the provided material.
- material : cesiumpy.cesiumpy.color.Color, default WHITE
- A Property specifying the material used to fill the corridor.
- outline : bool, default False
- A boolean Property specifying whether the corridor is outlined.
- outlineColor : cesiumpy.cesiumpy.color.Color, default BLACK
- A Property specifying the Color of the outline.
- outlineWidth : float, default 1.
- A numeric Property specifying the width of the outline.
- granularity : float, default cesiumpy.math.RADIANS_PER_DEGREE
- A numeric Property specifying the distance between each latitude and longitude.
-
cornerType
¶ A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
-
positions
¶ A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
-
class
cesiumpy.entities.entity.
Cylinder
(position, length, topRadius, bottomRadius, show=None, fill=None, material=None, outline=None, outlineColor=None, outlineWidth=None, numberOfVerticalLines=None, slices=None, name=None)¶ Bases:
cesiumpy.entities.entity._CesiumEntity
CylinderGraphics
- position : Cartesian3
- A Property specifying the Cartesian3 positions.
- length : float
- A numeric Property specifying the length of the cylinder.
- topRadius : float
- A numeric Property specifying the radius of the top of the cylinder.
- bottomRadius : float
- A numeric Property specifying the radius of the bottom of the cylinder.
- show : bool, default True
- A boolean Property specifying the visibility of the cylinder.
- fill : bool, default True
- A boolean Property specifying whether the cylinder is filled with the provided material.
- material : cesiumpy.cesiumpy.color.Color, default WHITE
- A Property specifying the material used to fill the cylinder.
- outline : bool, default False
- A boolean Property specifying whether the cylinder is outlined.
- outlineColor : cesiumpy.cesiumpy.color.Color, default BLACK
- A Property specifying the Color of the outline.
- outlineWidth : float, default 1.
- A numeric Property specifying the width of the outline.
- numberOfVerticalLines : int, default 16
- A numeric Property specifying the number of vertical lines to draw along the perimeter for the outline.
- slices : int, default 128
- The number of edges around perimeter of the cylinder.
-
bottomRadius
¶ A float trait.
-
length
¶ A float trait.
-
slices
¶ A float trait.
-
topRadius
¶ A float trait.
-
class
cesiumpy.entities.entity.
Ellipse
(position, semiMinorAxis, semiMajorAxis, height=None, extrudedHeight=None, show=None, fill=None, material=None, outline=None, outlineColor=None, outlineWidth=None, numberOfVerticalLines=None, rotation=None, stRotation=None, name=None)¶ Bases:
cesiumpy.entities.entity._CesiumEntity
EllipseGraphics
- position : Cartesian3
- A Property specifying the Cartesian3 positions.
- semiMajorAxis : float
- The numeric Property specifying the semi-major axis.
- semiMinorAxis : float
- The numeric Property specifying the semi-minor axis.
- height : float, default 0.
- A numeric Property specifying the altitude of the ellipse.
- extrudedHeight : float, default 0.
- A numeric Property specifying the altitude of the ellipse extrusion.
- show : bool, default True
- A boolean Property specifying the visibility of the ellipse.
- fill : bool, default True
- A boolean Property specifying whether the ellipse is filled with the provided material.
- material : cesiumpy.cesiumpy.color.Color, default WHITE
- A Property specifying the material used to fill the ellipse.
- outline : bool, default False
- A boolean Property specifying whether the ellipse is outlined.
- outlineColor : cesiumpy.cesiumpy.color.Color, default BLACK
- A Property specifying the Color of the outline.
- outlineWidth : float, default 1.
- A numeric Property specifying the width of the outline.
- numberOfVerticalLines : int, default 16
- Property specifying the number of vertical lines to draw along the perimeter for the outline.
- rotation : float, default 0.
- A numeric property specifying the rotation of the ellipse counter-clockwise from north.
- stRotation : float, default 0.
- A numeric property specifying the rotation of the ellipse texture counter-clockwise from north.
- granularity : float, default cesiumpy.math.RADIANS_PER_DEGREE
- A numeric Property specifying the angular distance between points on the ellipse.
-
semiMajorAxis
¶ A float trait.
-
semiMinorAxis
¶ A float trait.
-
class
cesiumpy.entities.entity.
Ellipsoid
(position, radii, show=None, fill=None, material=None, outline=None, outlineColor=None, outlineWidth=None, subdivisions=None, stackPartitions=None, slicePartitions=None, name=None)¶ Bases:
cesiumpy.entities.entity._CesiumEntity
EllipsoidGraphics
- position : Cartesian3
- A Property specifying the Cartesian3 positions.
- radii : Cartesian3
- A Cartesian3 Property specifying the radii of the ellipsoid.
- show : bool, default True
- A boolean Property specifying the visibility of the ellipsoid.
- fill : bool, default True
- A boolean Property specifying whether the ellipsoid is filled with the provided material.
- material : cesiumpy.cesiumpy.color.Color, default WHITE
- A Property specifying the material used to fill the ellipsoid.
- outline : bool, default False
- A boolean Property specifying whether the ellipsoid is outlined.
- outlineColor : CeciumColor, BLACK
- A Property specifying the Color of the outline.
- outlineWidth : float, default 1.
- A numeric Property specifying the width of the outline.
- subdivisions : int, default 128
- A Property specifying the number of samples per outline ring, determining the granularity of the curvature.
- stackPartitions : int, default 64
- A Property specifying the number of stacks.
- slicePartitions : int, default 64
- A Property specifying the number of radial slices.
-
radii
¶
-
slicePartitions
¶ A float trait.
-
stackPartitions
¶ A float trait.
-
subdivisions
¶ A float trait.
-
class
cesiumpy.entities.entity.
Label
(position, text, style=None, fillColor=None, outlineColor=None, outlineWidth=None, show=None, scale=None, horizontalOrigin=None, verticalOrigin=None, eyeOffset=None, pixelOffset=None, translucencyByDistance=None, pixelOffsetScaleByDistance=None, name=None)¶ Bases:
cesiumpy.entities.entity._CesiumEntity
LabelGraphics
- position : Cartesian3
- A Property specifying the Cartesian3 positions.
- text : str
- A Property specifying the text.
- font : str, default ‘10px sans-serif’
- A Property specifying the CSS font.
- style : LabeStyle, default LabelStyle.FILL
- A Property specifying the LabelStyle.
- fillColor : Color, default Color.WHITE
- A Property specifying the fill Color.
- outlineColor : Color, default, Color.BLACK
- A Property specifying the outline Color.
- outlineWidth : float, default 1.
- A numeric Property specifying the outline width.
- show : bool, default True
- A boolean Property specifying the visibility of the label.
- scale : float, default 1.
- A numeric Property specifying the scale to apply to the text.
- horizontalOrigin : HorizontalOrigin, default HorizontalOrigin.CENTER
- A Property specifying the HorizontalOrigin.
- verticalOrigin : VerticalOrigin, default VerticalOrigin.CENTER
- A Property specifying the VerticalOrigin.
- eyeOffset : Cartesian3, default Cartesian3.ZERO
- A Cartesian3 Property specifying the eye offset.
- pixelOffset : Cartesian2, default Cartesian2.ZERO
- A Cartesian2 Property specifying the pixel offset.
- translucencyByDistance :
- A NearFarScalar Property used to set translucency based on distance from the camera.
- pixelOffsetScaleByDistance :
- A NearFarScalar Property used to set pixelOffset based on distance from the camera.
-
fillColor
¶
-
text
¶ A trait for unicode strings.
-
class
cesiumpy.entities.entity.
Point
(position, color=None, pixelSize=10, outlineColor=None, outlineWidth=None, show=None, scaleByDistance=None, translucencyByDistance=None, name=None)¶ Bases:
cesiumpy.entities.entity._CesiumEntity
PointGraphics
- position : Cartesian3
- A Property specifying the Cartesian3 positions.
- color : Color, default WHITE
- A Property specifying the Color of the point.
- pixelSize : int, default 10
- A numeric Property specifying the size in pixels.
- outlineColor : Color, default BLACK
- A Property specifying the Color of the outline.
- outlineWidth : int, default 0
- A numeric Property specifying the the outline width in pixels.
- show : bool, default True
- A boolean Property specifying the visibility of the point.
- scaleByDistance :
- A NearFarScalar Property used to scale the point based on distance.
- translucencyByDistance :
- A NearFarScalar Property used to set translucency based on distance from the camera.
-
pixelSize
¶ A float trait.
-
class
cesiumpy.entities.entity.
Polygon
(hierarchy, height=None, extrudedHeight=None, show=None, fill=None, material=None, outline=None, outlineColor=None, outlineWidth=None, stRotation=None, granularity=None, perPositionHeight=None, name=None)¶ Bases:
cesiumpy.entities.entity._CesiumEntity
PolygonGraphics
- hierarchy : Cartesian3
- A Property specifying the PolygonHierarchy.
- height : float, default 0.
- A numeric Property specifying the altitude of the polygon.
- extrudedHeight : float, default 0.
- A numeric Property specifying the altitude of the polygon extrusion.
- show : bool, default True
- A boolean Property specifying the visibility of the polygon.
- fill : bool, default True
- A boolean Property specifying whether the polygon is filled with the provided material.
- material : cesiumpy.cesiumpy.color.Color, default WHITE
- A Property specifying the material used to fill the polygon.
- outline : bool, default False
- A boolean Property specifying whether the polygon is outlined.
- outlineColor : cesiumpy.cesiumpy.color.Color, default cesiumpy.color.BLACK
- A Property specifying the Color of the outline.
- outlineWidth : float, default 1.
- A numeric Property specifying the width of the outline.
- stRotation : float, default 0.
- A numeric property specifying the rotation of the polygon texture counter-clockwise from north.
- granularity : float, default cesiumpy.math.RADIANS_PER_DEGREE
- A numeric Property specifying the angular distance between each latitude and longitude point.
- perPositionHeight : bool, default False
- A boolean specifying whether or not the the height of each position is used.
-
perPositionHeight
¶ A boolean (True, False) trait.
-
positions
¶
-
class
cesiumpy.entities.entity.
Polyline
(positions, followSurface=None, width=None, show=None, material=None, granularity=None, name=None)¶ Bases:
cesiumpy.entities.entity._CesiumEntity
PolylineGraphics
- positions : Cartesian3
- A Property specifying the array of Cartesian3 positions that define the line strip.
- followSurface : bool, default True
- A boolean Property specifying whether the line segments should be great arcs or linearly connected.
- width : float, default 1.
- A numeric Property specifying the width in pixels.
- show : bool, default True
- A boolean Property specifying the visibility of the polyline.
- material : cesiumpy.cesiumpy.color.Color, default WHITE
- A Property specifying the material used to draw the polyline.
- granularity : float, default cesiumpy.math.RADIANS_PER_DEGREE
- A numeric Property specifying the angular distance between each latitude and longitude if followSurface is true.
-
followSurface
¶ A boolean (True, False) trait.
-
positions
¶ A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
-
class
cesiumpy.entities.entity.
PolylineVolume
(positions, shape, cornerType=None, show=None, fill=None, material=None, outline=None, outlineColor=None, outlineWidth=None, granularity=None, name=None)¶ Bases:
cesiumpy.entities.entity._CesiumEntity
PolylineVolumeGraphics
- positions : Cartesian3
- A Property specifying the array of Cartesian3 positions which define the line strip.
- shape : Cartesian2
- optional A Property specifying the array of Cartesian2 positions which define the shape to be extruded.
- cornerType : CornerType, default ROUNDED
- A CornerType Property specifying the style of the corners.
- show : bool, default True
- A boolean Property specifying the visibility of the volume.
- fill : bool, default True
- A boolean Property specifying whether the volume is filled with the provided material.
- material : cesiumpy.cesiumpy.color.Color, default WHITE
- A Property specifying the material used to fill the volume.
- outline : bool, default False
- A boolean Property specifying whether the volume is outlined.
- outlineColor : cesiumpy.cesiumpy.color.Color, default BLACK
- A Property specifying the Color of the outline.
- outlineWidth : float, default 1.
- A numeric Property specifying the width of the outline.
- granularity : float, default cesiumpy.math.RADIANS_PER_DEGREE
- A numeric Property specifying the angular distance between each latitude and longitude point.
-
cornerType
¶ A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
-
positions
¶ A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
-
shape
¶ An instance of a Python list.
-
class
cesiumpy.entities.entity.
Rectangle
(coordinates, height=None, extrudedHeight=None, closeTop=None, closeBottom=None, show=None, fill=None, material=None, outline=None, outlineColor=None, outlineWidth=None, stRotation=None, granularity=None, name=None)¶ Bases:
cesiumpy.entities.entity._CesiumEntity
RectangleGraphics
- coordinates : list of 4 floats, corresponding to west, south, east, north
- The Property specifying the Rectangle.
- height : float, default 0.
- A numeric Property specifying the altitude of the rectangle.
- extrudedHeight : float, default 0.
- A numeric Property specifying the altitude of the rectangle extrusion.
- closeTop : bool, default True
- A boolean Property specifying whether the rectangle has a top cover when extruded
- closeBottom : bool, default True
- A boolean Property specifying whether the rectangle has a bottom cover when extruded.
- show : bool, default True
- A boolean Property specifying the visibility of the rectangle.
- fill : bool, default True
- A boolean Property specifying whether the rectangle is filled with the provided material.
- material : cesiumpy.cesiumpy.color.Color, default WHITE
- A Property specifying the material used to fill the rectangle.
- outline : bool, default False
- A boolean Property specifying whether the rectangle is outlined.
- outlineColor : cesiumpy.cesiumpy.color.Color, default BLACK
- A Property specifying the Color of the outline.
- outlineWidth : float, default 1.
- A numeric Property specifying the width of the outline.
- rotation : float, default 0.
- A numeric property specifying the rotation of the rectangle clockwise from north.
- stRotation : float, default 0.
- A numeric property specifying the rotation of the rectangle texture counter-clockwise from north.
- granularity : float, default cesiumpy.math.RADIANS_PER_DEGREE
- A numeric Property specifying the angular distance between points on the rectangle.
-
closeBottom
¶ A boolean (True, False) trait.
-
closeTop
¶ A boolean (True, False) trait.
-
coordinates
¶
-
class
cesiumpy.entities.entity.
Wall
(positions, maximumHeights, minimumHeights, show=None, fill=None, material=None, outline=None, outlineColor=None, outlineWidth=None, granularity=None, name=None)¶ Bases:
cesiumpy.entities.entity._CesiumEntity
WallGraphics
- positions : Cartesian3
- A Property specifying the array of Cartesian3 positions which define the top of the wall.
- maximumHeights : float or its list
- A Property specifying an array of heights to be used for the top of the wall instead of the height of each position.
- minimumHeights : float or its list
- A Property specifying an array of heights to be used for the bottom of the wall instead of the globe surface.
- show : bool, default True
- A boolean Property specifying the visibility of the wall.
- fill : bool, default True
- A boolean Property specifying whether the wall is filled with the provided material.
- material : cesiumpy.cesiumpy.color.Color, default WHITE
- A Property specifying the material used to fill the wall.
- outline : bool, default False
- A boolean Property specifying whether the wall is outlined.
- outlineColor : cesiumpy.cesiumpy.color.Color, default BLACK
- A Property specifying the Color of the outline.
- outlineWidth : float, default 1.
- A numeric Property specifying the width of the outline.
- granularity : float, default cesiumpy.math.RADIANS_PER_DEGREE
- A numeric Property specifying the angular distance between each latitude and longitude point.
-
positions
¶ A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
-
class
cesiumpy.entities.material.
ImageMaterialProperty
(image, repeat=None)¶ Bases:
cesiumpy.entities.material.Material
- image : str
- A Property specifying the Image, URL, Canvas, or Video.
- repeat : Cartesian2, default new Cartesian2(1.0, 1.0)
- A Cartesian2 Property specifying the number of times
-
image
¶
-
script
¶
-
class
cesiumpy.entities.material.
Material
(*args, **kwargs)¶ Bases:
cesiumpy.base._CesiumObject
-
classmethod
maybe
(x)¶
-
classmethod
-
class
cesiumpy.entities.material.
TemporaryImage
(figure, trim=True)¶ Bases:
cesiumpy.base._CesiumObject
Receive an image and output a temp file
- figure : matplotib Figure or Axes
- Instance to be drawn as an image. When trim is True, figure should only contain a single Axes.
- trim : bool, default True
- Whether to trim margins of
-
path
¶ A trait for unicode strings.
-
script
¶
-
trim
¶ A boolean (True, False) trait.
-
class
cesiumpy.entities.model.
Model
(url, modelMatrix, basePath=None, show=None, scale=None, minimumPixelSize=None, maximumScale=None, id=None, allowPicking=None, incrementallyLoadTextures=None, asynchronous=None, debugShowBoundingVolume=None, debugWireframe=None)¶ Bases:
cesiumpy.base._CesiumObject
3D Model
- url : str
- The object for the glTF JSON or an arraybuffer of Binary glTF defined by the KHR_binary_glTF extension.
- modelMatrix : Matrix4, default Matrix4.IDENTITY
- The 4x4 transformation matrix that transforms the model from model to world coordinates.
- basePath : str, default ‘’
- The base path that paths in the glTF JSON are relative to.
- show : bool, default True
- Determines if the model primitive will be shown.
- scale : float, default 1.0
- A uniform scale applied to this model.
- minimumPixelSize : float, default 0.0
- The approximate minimum pixel size of the model regardless of zoom.
- maximumScale : float
- The maximum scale size of a model. An upper limit for minimumPixelSize.
- id :
- A user-defined object to return when the model is picked with Scene#pick.
- allowPicking : bool, default True
- When true, each glTF mesh and primitive is pickable with Scene#pick.
- incrementallyLoadTextures : bool, default True
- Determine if textures may continue to stream in after the model is loaded.
- asynchronous : bool, default True
- Determines if model WebGL resource creation will be spread out over several frames or block until completion once all glTF files are loaded.
- debugShowBoundingVolume : bool, default False
- For debugging only. Draws the bounding sphere for each draw command in the model.
- debugWireframe : bool, default False
- For debugging only. Draws the model in wireframe.
-
allowPicking
¶ A boolean (True, False) trait.
-
asynchronous
¶ A boolean (True, False) trait.
-
basePath
¶ A trait for unicode strings.
-
debugShowBoundingVolume
¶ A boolean (True, False) trait.
-
debugWireframe
¶ A boolean (True, False) trait.
-
incrementallyLoadTextures
¶ A boolean (True, False) trait.
-
maximumScale
¶ A float trait.
-
minimumPixelSize
¶ A float trait.
-
modelMatrix
¶ A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
-
scale
¶ A float trait.
-
script
¶
-
show
¶ A boolean (True, False) trait.
-
url
¶
-
class
cesiumpy.entities.pinbuilder.
Icon
(image)¶ Bases:
cesiumpy.entities.pinbuilder._BillboardContents
-
image
¶
-
script
¶
-
-
class
cesiumpy.entities.pinbuilder.
Pin
(color=None, size=48, text=None)¶ Bases:
cesiumpy.entities.pinbuilder._BillboardContents
-
color
¶
-
classmethod
fromColor
(color, size=48)¶ Create pin specifying color and size
- color : Color
- A Property specifying the Color of the pin.
- size : int, default 48
- A Property specifying the size of the pin.
-
classmethod
fromText
(text, color=None, size=48)¶ Create pin specifying text, color and size
- text : str
- A Property specifying the text of the pin.
- color : Color
- A Property specifying the Color of the pin.
- size : int, default 48
- A Property specifying the size of the pin.
-
script
¶
-
size
¶ A float trait.
-
text
¶ A trait for unicode strings.
-
-
class
cesiumpy.entities.transform.
Transforms
(origin, transform)¶ Bases:
cesiumpy.base._CesiumObject
-
classmethod
eastNorthUpToFixedFrame
(origin)¶ Computes a 4x4 transformation matrix from a reference frame with an east-north-up axes centered at the provided origin to the provided ellipsoid’s fixed reference frame. The local axes are defined as:
- The x axis points in the local east direction.
- The y axis points in the local north direction.
- The z axis points in the direction of the ellipsoid surface normal
which passes through the position.
- origin : Cartesian3
- The center point of the local reference frame.
-
classmethod
northEastDownToFixedFrame
(origin)¶ Computes a 4x4 transformation matrix from a reference frame with an north-east-down axes centered at the provided origin to the provided ellipsoid’s fixed reference frame. The local axes are defined as:
- The x axis points in the local north direction.
- The y axis points in the local east direction.
- The z axis points in the opposite direction of the ellipsoid surface
normal which passes through the position.
- origin : Cartesian3
- The center point of the local reference frame.
-
classmethod
northUpEastToFixedFrame
(origin)¶ Computes a 4x4 transformation matrix from a reference frame with an north-up-east axes centered at the provided origin to the provided ellipsoid’s fixed reference frame. The local axes are defined as:
- The x axis points in the local north direction.
- The y axis points in the direction of the ellipsoid surface normal which passes through the position.
- The z axis points in the local east direction.
- origin : Cartesian3
- The center point of the local reference frame.
-
origin
¶
-
script
¶
-
transform
¶ A trait for unicode strings.
-
classmethod