A Scene basically is a collection of Primitives which together form the scene to be rendered.
The Scene itself is a primitive as well, and offers an intersect method.
- Inheritance
- Object
- Primitive
- Scene
Constructors
Properties
- ccs → CartesianCoordinateSystem
-
The cartesian coordinate system of this scene.
read / write - color → Vector4
-
The primary color of the primitive as vector4 (only used for GUI).
read-only, inherited - colorString → String
-
The primary color of the primitive as CSS rgba string (only used for GUI).
read-only, inherited - hashCode → int
-
Get a hash code for this object.…
read-only, inherited - id → int
-
Unique id of the primitive.
read-only, inherited - nonIdxPrimitives → List<Primitive>
-
A list of non-indexable primitives in the scene.
read / write - origin → Point3
-
The origin of the primitive (only used for GUI).
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.…
inherited
Methods
-
add(
Primitive p) → void -
Adds the given Primitive to this scene.
-
displayCCS(
bool displayCCS) → void -
Given parameter determines if the cartesian coordinate system will be rendered in this scene.
-
getShader(
Intersection intersect) → Shader -
Returns the shader for a given intersection point.
-
intersect(
Ray r, double prevBestDistance) → Intersection -
Performs a ray - scene intersection.…
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.…
inherited -
remove(
int primId) → void -
Removes the Primitive with given id from this scene.
-
toString(
) → String -
Returns a string representation of this object.