|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metaio.sdk.jni.IBillboardGroup
public class IBillboardGroup
Takes a set of billboards and reorders them in space. All billboards within the set are placed in space relative to each other. First the billboard distance to the global origin (3d camera position) is adjusted and then the billboards are arranged in clip space that they don't overlap anymore
Constructor Summary | |
---|---|
IBillboardGroup(long cPtr,
boolean cMemoryOwn)
|
Method Summary | |
---|---|
boolean |
addBillboard(IGeometry billboard)
|
void |
delete()
|
static long |
getCPtr(IBillboardGroup obj)
|
boolean |
removeBillboard(IGeometry billboard)
|
void |
setBillboardExpandFactors(float expand,
int strength)
The billboard expand factors influence how much the billboards are expands relative to the center of the camera view. |
void |
setBillboardExpandFactors(float expand,
int strength,
int maxOverlap)
The billboard expand factors influence how much the billboards are expands relative to the center of the camera view. |
void |
setDistanceWeightFactor(int weight)
As higher the distance weight, as closer come billboards which are far away from the screen. |
void |
setViewCompressionValues(float nearValue,
float farValue)
All visible billboards are placed relative to each other away from the camera in the range [nearValue, farValue]. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IBillboardGroup(long cPtr, boolean cMemoryOwn)
Method Detail |
---|
public static long getCPtr(IBillboardGroup obj)
public void delete()
public boolean addBillboard(IGeometry billboard)
billboard
- The billboard which is added
bool True if the billboard could be added else false.public boolean removeBillboard(IGeometry billboard)
billboard
- The billboard which is removed
bool True if the billboard could be removed else false.public void setViewCompressionValues(float nearValue, float farValue)
nearValue
- Minimum poi to camera distancefarValue
- Maximum poi to camera distancepublic void setDistanceWeightFactor(int weight)
weight
- The distance weight factorpublic void setBillboardExpandFactors(float expand, int strength, int maxOverlap)
expand
- A value which should range from [0...1]. It defines how much the
billboards are expanded as they come closer to the center of the
camera view. Fully expanded is 1 and 0 is no expansion at all. The
default value is 0.8.strength
- The strength factor defines how much the billboards around the center
are influenced by the expansion. A low value will allow billboards at
the edges of the screen to expand a bit, whereas a high value will
only allow the billboards wich are close to the camera view center to
expand. The default value is 5.maxOverlap
- If the number of billboards exceeds this number, the distance between
them decreases drastically. This prevents high stacks. The default
value is 10.public void setBillboardExpandFactors(float expand, int strength)
expand
- A value which should range from [0...1]. It defines how much the
billboards are expanded as they come closer to the center of the
camera view. Fully expanded is 1 and 0 is no expansion at all. The
default value is 0.8.strength
- The strength factor defines how much the billboards around the center
are influenced by the expansion. A low value will allow billboards at
the edges of the screen to expand a bit, whereas a high value will
only allow the billboards wich are close to the camera view center to
expand. The default value is 5.maxOverlap
- If the number of billboards exceeds this number, the distance between
them decreases drastically. This prevents high stacks. The default
value is 10.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |