/** * Constructs a dome. All geometry data buffers are updated automatically. Both planes and radialSamples increase * the quality of the generated dome. * * @param name * Name of the dome. * @param center * Center of the dome. * @param planes * The number of planes along the Z-axis. * @param radialSamples * The number of samples along the radial. * @param radius * The radius of the dome. */ public Dome(final String name, final Vector3 center, final int planes, final int radialSamples, final double radius) { super(name); setData(center, planes, radialSamples, radius, true, true); }
/** * Changes the information of the dome into the given values. The boolean at the end signals if buffer data should * be updated as well. If the dome is to be rendered, then that value should be true. * * @param center * The new center of the dome. * @param planes * The number of planes along the Z-axis. * @param radialSamples * The new number of radial samples of the dome. * @param radius * The new radius of the dome. * @param updateBuffers * If true, buffer information is updated as well. * @param outsideView * If true, the triangles will be connected for a view outside of the dome. */ public void setData(final Vector3 center, final int planes, final int radialSamples, final double radius, final boolean updateBuffers, final boolean outsideView) { _planes = planes; _radialSamples = radialSamples; _radius = radius; if (updateBuffers) { setGeometryData(outsideView, center); setIndexData(); } }
/** * Changes the information of the dome into the given values. The boolean at the end signals if buffer data should * be updated as well. If the dome is to be rendered, then that value should be true. * * @param center * The new center of the dome. * @param planes * The number of planes along the Z-axis. * @param radialSamples * The new number of radial samples of the dome. * @param radius * The new radius of the dome. * @param updateBuffers * If true, buffer information is updated as well. * @param outsideView * If true, the triangles will be connected for a view outside of the dome. */ public void setData(final Vector3 center, final int planes, final int radialSamples, final double radius, final boolean updateBuffers, final boolean outsideView) { _planes = planes; _radialSamples = radialSamples; _radius = radius; if (updateBuffers) { setGeometryData(outsideView, center); setIndexData(); } }
/** * Constructs a dome. All geometry data buffers are updated automatically. Both planes and radialSamples increase * the quality of the generated dome. * * @param name * Name of the dome. * @param center * Center of the dome. * @param planes * The number of planes along the Z-axis. * @param radialSamples * The number of samples along the radial. * @param radius * The radius of the dome. */ public Dome(final String name, final Vector3 center, final int planes, final int radialSamples, final double radius) { super(name); setData(center, planes, radialSamples, radius, true, true); }
/** * Constructs a dome. All geometry data buffers are updated automatically. Both planes and radialSamples increase * the quality of the generated dome. * * @param name * Name of the dome. * @param center * Center of the dome. * @param planes * The number of planes along the Z-axis. * @param radialSamples * The number of samples along the radial. * @param radius * The radius of the dome. * @param outsideView * If true, the triangles will be connected for a view outside of the dome. */ public Dome(final String name, final Vector3 center, final int planes, final int radialSamples, final double radius, final boolean outsideView) { super(name); setData(center, planes, radialSamples, radius, true, outsideView); }
/** * Constructs a dome. All geometry data buffers are updated automatically. Both planes and radialSamples increase * the quality of the generated dome. * * @param name * Name of the dome. * @param center * Center of the dome. * @param planes * The number of planes along the Z-axis. * @param radialSamples * The number of samples along the radial. * @param radius * The radius of the dome. * @param outsideView * If true, the triangles will be connected for a view outside of the dome. */ public Dome(final String name, final Vector3 center, final int planes, final int radialSamples, final double radius, final boolean outsideView) { super(name); setData(center, planes, radialSamples, radius, true, outsideView); }