edu.utexas.cs.sdao.reyes.render

MicropolygonGrid

class MicropolygonGrid extends AnyRef

A grid of micropolygons on a UV surface.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MicropolygonGrid
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MicropolygonGrid(width: Int, height: Int, surface: SplitSurface, data: Array[(Vector3, Vector3, Vector2, Color)])

    width

    the number of U segments

    height

    the number of V segments

    surface

    the original surface grom which the grid was derived

    data

    an array of tuples, the first element being the vertex, the second being the normal, the third being the UV coordinate and the last being the color; this array is arranged in U-major order, i.e. all elements with the same U-index are contiguous.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def boundingBox: BoundingBox

    The bounding box of the grid.

    The bounding box of the grid.

    returns

    the bounding box

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def getColor(u: Int, v: Int): Color

    Gets the color of a vertex.

    Gets the color of a vertex. Typically, the color will be Color.BLACK unless the grid has been shaded.

    u

    the U-index of the vertex

    v

    the V-index of the vertex

    returns

    the color at the UV index

  14. def getNormal(u: Int, v: Int): Vector3

    Gets the world-space normal of a vertex.

    Gets the world-space normal of a vertex.

    u

    the U-index of the vertex

    v

    the V-index of the vertex

    returns

    the normal at the UV index

  15. def getUV(u: Int, v: Int): Vector2

    Gets the UV coordinate of a vertex.

    Gets the UV coordinate of a vertex.

    u

    the U-index of the vertex

    v

    the V-index of the vertex

    returns

    the UV coordinate at the UV index

  16. def getVertex(u: Int, v: Int): Vector3

    Gets the world-space coordinate of a vertex.

    Gets the world-space coordinate of a vertex.

    u

    the U-index of the vertex

    v

    the V-index of the vertex

    returns

    the vertex at the UV index

  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def project(proj: Projection): ProjectedMicropolygonGrid

    Projects the grid onto the screen.

    Projects the grid onto the screen. Note that, in the projected grid, the vertex will have three components: x and y are the screen coordinates, and z is the z-depth for z-buffer calculations.

  23. def shade(eyeProjection: Projection, displaceOnly: Boolean = false): MicropolygonGrid

    Performs shading routines on the micropolygon grid and returns a new grid.

    Performs shading routines on the micropolygon grid and returns a new grid. The grid will be displaced and colored. Normals will be recalculated after displacement.

    eyeProjection

    the projection from world coordinates to the eye

    displaceOnly

    whether to only displace the grid without calculating colors

    returns

    a new micropolygon grid

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped