|
JPBRT 0.5 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpbrt.core.CameraSample
org.jpbrt.core.Sample
public class Sample
Holds a sample generated by a Sampler
.
References:
M. Pharr, G. Humphreys. (2004). Physically Based Rendering. Morgan Kaufmann.
Seciton 7.2, page 299.
Field Summary | |
---|---|
java.util.ArrayList<float[]> |
oneD
Fields for use by the integrator. |
java.util.ArrayList<float[]> |
twoD
|
Fields inherited from class org.jpbrt.core.CameraSample |
---|
imageX, imageY, lensU, lensV, time |
Constructor Summary | |
---|---|
Sample(Sampler sampler,
SurfaceIntegrator surf,
VolumeIntegrator vol,
Scene scene)
|
Method Summary | |
---|---|
int |
add1D(int num)
Records the numbers of samples asked for in an array and returns an index that the integrator can later use to access the desired sample values in the sample. |
int |
add2D(int num)
Records the numbers of samples asked for in an array and returns an index that the integrator can later use to access the desired sample values in the sample. |
protected Sample |
clone()
|
Sample[] |
duplicate(int count)
|
int |
n1D(int num)
Returns the number of samples in oneD. |
int |
n2D(int num)
Returns the number of samples in twoD. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.util.ArrayList<float[]> oneD
public java.util.ArrayList<float[]> twoD
Constructor Detail |
---|
public Sample(Sampler sampler, SurfaceIntegrator surf, VolumeIntegrator vol, Scene scene)
Method Detail |
---|
public int add1D(int num)
num
- Number of samples.
public int add2D(int num)
num
- Number of samples.
public int n1D(int num)
public int n2D(int num)
protected Sample clone()
clone
in class java.lang.Object
public Sample[] duplicate(int count)
public java.lang.String toString()
toString
in class java.lang.Object
|
Copyright 2010 © by the authors and contributors of the JPBRT project. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |