object TabulatedSHBrdf extends Serializable
- Alphabetic
- By Inheritance
- TabulatedSHBrdf
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
DefaultMapping
(indexRange: Int) extends Mapping with Product with Serializable
Default strategy for mapping unit vectors to a linear index.
Default strategy for mapping unit vectors to a linear index.
Directions on the upper hemisphere are represented in the first half of the index range. The hemispheres are projected to a plane which is then linearized.
- indexRange
The upper bound of the index. Has to be 2*(n^2).
-
trait
Mapping
extends AnyRef
Abstracts the mapping of directions to a zero-based linear range of integer indices and vice versa.
Abstracts the mapping of directions to a zero-based linear range of integer indices and vice versa. Due to the integral indices, the amount of distinguishable directions is capped at some point (c.f. indexRange).
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(brdf: SHBrdf with CosineTerm, resolutionPerAxis: Int): TabulatedSHBrdf with CosineTerm
Tabulates a SHBrdf using the default mapping.
Tabulates a SHBrdf using the default mapping.
- brdf
The SHBrdf to tabulate.
- resolutionPerAxis
Resolution of the default mapping (see TabulatedSHBrdf.DefaultMapping).
- returns
An instance of TabulatedSHBrdf
-
def
apply(brdf: SHBrdf, resolutionPerAxis: Int): TabulatedSHBrdf
Tabulates a SHBrdf using the default mapping.
Tabulates a SHBrdf using the default mapping.
- brdf
The SHBrdf to tabulate.
- resolutionPerAxis
Resolution of the default mapping (see TabulatedSHBrdf.DefaultMapping).
- returns
An instance of TabulatedSHBrdf
-
def
apply(brdf: SHBrdf with CosineTerm, mapping: Mapping): TabulatedSHBrdf with CosineTerm
Tabulates a SHBrdf according to the specified mapping.
Tabulates a SHBrdf according to the specified mapping.
- brdf
The SHBrdf to tabulate.
- mapping
The mapping strategy to use for tabulation.
- returns
An instance of TabulatedSHBrdf
-
def
apply(brdf: SHBrdf, mapping: Mapping): TabulatedSHBrdf
Tabulates a SHBrdf according to the specified mapping.
Tabulates a SHBrdf according to the specified mapping.
- brdf
The SHBrdf to tabulate.
- mapping
The mapping strategy to use for tabulation.
- returns
An instance of TabulatedSHBrdf
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withCosineTerm(buffer: IndexedSeq[DenseVector[Double]], mapping: Mapping): TabulatedSHBrdf with CosineTerm
Constructs an instance of TabulatedSHBrdf from set of SH vectors that will be accessed using the specified mapping strategy.
Constructs an instance of TabulatedSHBrdf from set of SH vectors that will be accessed using the specified mapping strategy. The resulting TabulatedSHBrdf will inherit the CosineTerm marker trait.
- buffer
SH projections of the BRDF for a dense set of view directions (given by mapping).
- mapping
The mapping that will be used to translate view-directions to linear indices.
- returns
An instance of TabulatedSHBrdf
-
def
withCosineTerm(buffer: IndexedSeq[DenseVector[Double]]): TabulatedSHBrdf with CosineTerm
Constructs an instance of TabulatedSHBrdf from set of SH vectors that will be accessed using the default mapping strategy.
Constructs an instance of TabulatedSHBrdf from set of SH vectors that will be accessed using the default mapping strategy. The resulting TabulatedSHBrdf will inherit the CosineTerm marker trait.
- buffer
SH projections of the BRDF for a dense set of view directions (given by DefaultMapping).
- returns
An instance of TabulatedSHBrdf
-
def
withCosineTerm(brdf: BRDF[Double], resolutionPerAxis: Int, shBands: Int, sampleCount: Int = 1000): TabulatedSHBrdf with CosineTerm
Tabulates a BRDF using the default mapping.
Tabulates a BRDF using the default mapping. The BRDF will be augmented with the rendering equation's cosine-term.
- brdf
The SHBrdf to tabulate.
- resolutionPerAxis
Resolution of the default mapping (see TabulatedSHBrdf.DefaultMapping).
- shBands
The number of SH bands to use for projection.
- sampleCount
The number of samples to use for MC integration.
- returns
An instance of TabulatedSHBrdf
-
def
withoutCosineTerm(buffer: IndexedSeq[DenseVector[Double]], mapping: Mapping): TabulatedSHBrdf
Constructs an instance of TabulatedSHBrdf from set of SH vectors that will be accessed using the specified mapping strategy.
Constructs an instance of TabulatedSHBrdf from set of SH vectors that will be accessed using the specified mapping strategy.
- buffer
SH projections of the BRDF for a dense set of view directions (given by mapping).
- mapping
The mapping that will be used to translate view-directions to linear indices.
- returns
An instance of TabulatedSHBrdf
-
def
withoutCosineTerm(buffer: IndexedSeq[DenseVector[Double]]): TabulatedSHBrdf
Constructs an instance of TabulatedSHBrdf from set of SH vectors that will be accessed using the default mapping strategy.
Constructs an instance of TabulatedSHBrdf from set of SH vectors that will be accessed using the default mapping strategy.
- buffer
SH projections of the BRDF for a dense set of view directions (given by DefaultMapping).
- returns
An instance of TabulatedSHBrdf
-
def
withoutCosineTerm(brdf: BRDF[Double], resolutionPerAxis: Int, shBands: Int, sampleCount: Int = 1000): TabulatedSHBrdf
Tabulates a BRDF using the default mapping.
Tabulates a BRDF using the default mapping.
- brdf
The SHBrdf to tabulate.
- resolutionPerAxis
Resolution of the default mapping (see TabulatedSHBrdf.DefaultMapping).
- shBands
The number of SH bands to use for projection.
- sampleCount
The number of samples to use for MC integration.
- returns
An instance of TabulatedSHBrdf