Class Resolution
java.lang.Object
org.opensourcephysics.display3d.core.Resolution
- Direct Known Subclasses:
Resolution
Title: Resolution
Description: A class that provides resolution style hints for 3D Elements
A resolution can be of two different types: DIVISIONS or MAX_LENGTH.
- DIVISIONS: the resolution indicates how many subdivisions should the element have, up to three of them: n1, n2, and n3. The precise meaning of this is left to the element, but typically consists in the number of divisions in each coordinate direction.
- MAX_LENGTH: the resolution provides a maximum length that each of the individual graphical pieces of the element can have. The element can then automatically divide itself in smaller pieces, if necessary.
- Version:
- March 2005
- Author:
- Francisco Esquembre
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResolution
(double max) A constructor for a resolution of type MAX_LENGTH.Resolution
(int n1, int n2, int n3) A constructor for a resolution of type DIVISIONS. -
Method Summary
Modifier and TypeMethodDescriptionstatic XML.ObjectLoader
final double
final int
getN1()
final int
getN2()
final int
getN3()
final int
getType()
-
Field Details
-
DIVISIONS
public static final int DIVISIONS- See Also:
-
MAX_LENGTH
public static final int MAX_LENGTH- See Also:
-
-
Constructor Details
-
Resolution
public Resolution(double max) A constructor for a resolution of type MAX_LENGTH.- Parameters:
max
- The maximum length.
-
Resolution
public Resolution(int n1, int n2, int n3) A constructor for a resolution of type DIVISIONS.- Parameters:
n1
- int the first number of subdivisionsn2
- int the second number of subdivisionsn3
- int the thrid number of subdivisions
-
-
Method Details
-
getType
public final int getType() -
getMaxLength
public final double getMaxLength() -
getN1
public final int getN1() -
getN2
public final int getN2() -
getN3
public final int getN3() -
getLoader
-