public abstract class SceneStructureCommon extends java.lang.Object implements SceneStructure
SceneStructure. Contains data structures
common to all implementations| Modifier and Type | Class and Description |
|---|---|
static class |
SceneStructureCommon.Point |
| Modifier and Type | Field and Description |
|---|---|
boolean |
homogenous
True if homogenous coordinates are being used
|
SceneStructureCommon.Point[] |
points |
protected int |
pointSize |
| Constructor and Description |
|---|
SceneStructureCommon(boolean homogenous) |
| Modifier and Type | Method and Description |
|---|---|
void |
connectPointToView(int pointIndex,
int viewIndex)
Specifies that the point was observed in this view.
|
SceneStructureCommon.Point[] |
getPoints() |
boolean |
isHomogenous()
If true then homogenous coordinates are being used.
|
void |
removePoints(org.ddogleg.struct.GrowQueue_I32 which)
Removes the points specified in 'which' from the list of points.
|
void |
setPoint(int which,
double x,
double y,
double z)
Specifies the location of a point in 3D space
|
void |
setPoint(int which,
double x,
double y,
double z,
double w)
Specifies the location of a point as a 3D homogenous coordinate
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterCountpublic SceneStructureCommon.Point[] points
public boolean homogenous
protected int pointSize
public void setPoint(int which,
double x,
double y,
double z)
which - Which point is being specifiedx - coordinate along x-axisy - coordinate along y-axisz - coordinate along z-axispublic void setPoint(int which,
double x,
double y,
double z,
double w)
which - Which point is being specifiedx - coordinate along x-axisy - coordinate along y-axisz - coordinate along z-axisw - w-coordinatepublic void connectPointToView(int pointIndex,
int viewIndex)
pointIndex - index of pointviewIndex - index of viewpublic SceneStructureCommon.Point[] getPoints()
public void removePoints(org.ddogleg.struct.GrowQueue_I32 which)
which - Ordered list of point indexes to removepublic boolean isHomogenous()
SceneStructureisHomogenous in interface SceneStructure