Tabnine Logo
Shape3D.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.scijava.java3d.Shape3D
constructor

Best Java code snippets using org.scijava.java3d.Shape3D.<init> (Showing top 20 results out of 315)

origin: stackoverflow.com

lsa.setNormals(0, normals);
lsa.setCoordinates(0, pts);
Shape3D sh=new Shape3D();
PolygonAttributes pa=new PolygonAttributes();
pa.setPolygonMode(PolygonAttributes.POLYGON_FILL);
origin: stackoverflow.com

pts[23].x=0.5f;pts[23].y=0.5f;pts[23].z=-0.5f;
normals[20].y=1;normals[21].y=1;normals[22].y=1;normals[23].y=1;
Shape3D sh=new Shape3D();
PolygonAttributes pa=new PolygonAttributes();
pa.setPolygonMode(PolygonAttributes.POLYGON_FILL);
origin: org.scijava/j3dutils

@Override
protected org.scijava.java3d.SceneGraphObject createNode() {
  return new Shape3D();
}
origin: org.scijava/j3dcore

/**
 * Used to create a new instance of the node.  This routine is called
 * by <code>cloneTree</code> to duplicate the current node.
 * <code>cloneNode</code> should be overridden by any user subclassed
 * objects.  All subclasses must have their <code>cloneNode</code>
 * method consist of the following lines:
 * <P><blockquote><pre>
 *     public Node cloneNode(boolean forceDuplicate) {
 *         UserSubClass usc = new UserSubClass();
 *         usc.duplicateNode(this, forceDuplicate);
 *         return usc;
 *     }
 * </pre></blockquote>
 * @param forceDuplicate when set to <code>true</code>, causes the
 *  <code>duplicateOnCloneTree</code> flag to be ignored.  When
 *  <code>false</code>, the value of each node's
 *  <code>duplicateOnCloneTree</code> variable determines whether
 *  NodeComponent data is duplicated or copied.
 *
 * @see Node#cloneTree
 * @see Node#duplicateNode
 * @see NodeComponent#setDuplicateOnCloneTree
 */
@Override
public Node cloneNode(boolean forceDuplicate) {
  Shape3D s = new Shape3D();
  s.duplicateNode(this, forceDuplicate);
  return s;
}
origin: sc.fiji/VIB_

public Shape3D createShape() {
  Shape3D shape = new Shape3D(
    createGeometry(),
    createAppearance());
  return shape;
}
origin: sc.fiji/VIB_

public Shape3D createShape() {
  Shape3D shape = new Shape3D(
    createGeometry(),
    createAppearance());
  return shape;
}

origin: sc.fiji/3D_Viewer

  public ShapeGroup duplicate() {
    final ShapeGroup ret = new ShapeGroup();
    if (shape != null) {
      ret.shape = new Shape3D(shape.getGeometry(), shape.getAppearance());
      ret.group.addChild(ret.shape);
    }
    ret.pos = pos;
    return ret;
  }
}
origin: org.scijava/j3dcore

TriangleArray ta = vlist.toTriangleArray() ;
if (ta != null)
  shapes.add(new Shape3D(ta, a)) ;
break ;
 case TRI_STRIP_SET:
TriangleStripArray tsa = vlist.toTriangleStripArray() ;
if (tsa != null)
  shapes.add(new Shape3D(tsa, a)) ;
break ;
 case TRI_STRIP_AND_FAN_SET:
GeometryStripArray gsa[] = vlist.toStripAndFanArrays() ;
if (gsa[0] != null)
  shapes.add(new Shape3D(gsa[0], a)) ;
if (gsa[1] != null)
  shapes.add(new Shape3D(gsa[1], a)) ;
break ;
 case TRI_STRIP_AND_TRI_SET:
GeometryArray ga[] = vlist.toStripAndTriangleArrays() ;
if (ga[0] != null)
  shapes.add(new Shape3D(ga[0], a)) ;
if (ga[1] != null)
  shapes.add(new Shape3D(ga[1], a)) ;
break ;
 default:
LineStripArray lsa = vlist.toLineStripArray() ;
if (lsa != null)
shapes.add(new Shape3D(lsa, a)) ;
break ;
origin: sc.fiji/3D_Viewer

public void show(final CubeData cdata, final int index) {
  shape =
    new Shape3D(createGeometry(cdata, index), createAppearance(cdata, index));
  child.addChild(shape);
  group.addChild(child);
}
origin: stackoverflow.com

Shape3D plShape = new Shape3D();
int vIndex=-1;
int k=0;
origin: org.scijava/j3dutils

TriangleArray ta = vlist.toTriangleArray() ;
if (ta != null)
  shapes.add(new Shape3D(ta, a)) ;
break ;
 case TRI_STRIP_SET:
TriangleStripArray tsa = vlist.toTriangleStripArray() ;
if (tsa != null)
  shapes.add(new Shape3D(tsa, a)) ;
break ;
 case TRI_STRIP_AND_FAN_SET:
GeometryStripArray gsa[] = vlist.toStripAndFanArrays() ;
if (gsa[0] != null)
  shapes.add(new Shape3D(gsa[0], a)) ;
if (gsa[1] != null)
  shapes.add(new Shape3D(gsa[1], a)) ;
break ;
 case TRI_STRIP_AND_TRI_SET:
GeometryArray ga[] = vlist.toStripAndTriangleArrays() ;
if (ga[0] != null)
  shapes.add(new Shape3D(ga[0], a)) ;
if (ga[1] != null)
  shapes.add(new Shape3D(ga[1], a)) ;
break ;
 default:
LineStripArray lsa = vlist.toLineStripArray() ;
if (lsa != null)
shapes.add(new Shape3D(lsa, a)) ;
break ;
origin: fiji/TrackMate

trackSwitch.addChild( new Shape3D( line, appearance ) );
origin: org.scijava/j3dutils

Shape3D shape = new Shape3D();
origin: sc.fiji/3D_Viewer

final Appearance a = appCreator.getAppearance(axis, index);
final Shape3D frontShape = new Shape3D(quadArray, a);
frontShape.setCapability(Shape3D.ALLOW_APPEARANCE_WRITE);
frontShape.setCapability(Shape3D.ALLOW_APPEARANCE_READ);
front.addChild(frontShapeGroup);
final Shape3D backShape = new Shape3D(quadArray, a);
backShape.setCapability(Shape3D.ALLOW_APPEARANCE_READ);
backShape.setCapability(Shape3D.ALLOW_APPEARANCE_WRITE);
origin: sc.fiji/3D_Viewer

p[7] = new Point3f(min.x, max.y, min.z);
final Shape3D shape = new Shape3D();
shape.setName("BB");
origin: sc.fiji/3D_Viewer

final Appearance a = appCreator.getAppearance(axis, i);
final Shape3D frontShape = new Shape3D(quadArray, a);
frontShape.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE);
frontShape.setCapability(Shape3D.ALLOW_APPEARANCE_WRITE);
frontShapeGroup.addChild(frontShape);
final Shape3D backShape = new Shape3D(quadArray, a);
backShape.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE);
backShape.setCapability(Shape3D.ALLOW_APPEARANCE_READ);
origin: org.scijava/j3dutils

if (cache != null) {
  shape[i] = new Shape3D(cache.getComputedGeometry());
  numVerts += cache.getNumVerts();
  numTris += cache.getNumTris();
  shape[i] = new Shape3D(gbuf.getGeom(flags));
  numVerts = gbuf.getNumVerts();
  numTris = gbuf.getNumTris();
origin: sc.fiji/3D_Viewer

setCapability(BranchGroup.ALLOW_DETACH);
final Shape3D lines = new Shape3D();
lines.setGeometry(createGeometry());
addChild(lines);
origin: sc.fiji/3D_Viewer

public Scalebar(final float length) {
  final Transform3D position = new Transform3D();
  positionTG = new TransformGroup(position);
  positionTG.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
  positionTG.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
  addChild(positionTG);
  lineShape = new Shape3D();
  lineShape.setGeometry(createLineGeometry());
  lineShape.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE);
  positionTG.addChild(lineShape);
  final Transform3D texttranslate = new Transform3D();
  texttranslate.setTranslation(new Vector3f(length / 2, -length / 2, 0.0f));
  textTG = new TransformGroup(texttranslate);
  textTG.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
  positionTG.addChild(textTG);
  textShape = new OrientedShape3D();
  textShape.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE);
  textShape.setCapability(Shape3D.ALLOW_APPEARANCE_WRITE);
  textShape.setGeometry(createTextGeometry());
  textShape.setAppearance(createTextAppearance());
  textShape.setAlignmentAxis(0.0f, 1.0f, 0.0f);
  textTG.addChild(textShape);
}
origin: sc.fiji/VIB_

BranchGroup bg = new BranchGroup();
bg.setCapability(BranchGroup.ALLOW_DETACH);
bg.addChild(new Shape3D(qa, app));
univ.getScene().addChild(bg);
org.scijava.java3dShape3D<init>

Javadoc

Constructs a Shape3D node with default parameters. The default values are as follows:
    appearance : null
    geometry : { null }
    collision bounds : null
    appearance override enable : false
The list of geometry components is initialized with a null geometry component as the single element with an index of 0. A null geometry component specifies that no geometry is drawn. A null appearance component specifies that default values are used for all appearance attributes.

Popular methods of Shape3D

  • getGeometry
    Retrieves the geometry component at the specified index from this Shape3D node's list of geometry co
  • getAppearance
    Retrieves the appearance component of this shape node.
  • addGeometry
    Appends the specified geometry component to this Shape3D node's list of geometry components. If ther
  • setAppearance
    Sets the appearance component of this Shape3D node. Setting it to null specifies that default values
  • setCapability
  • setGeometry
    Replaces the geometry component at the specified index in this Shape3D node's list of geometry compo
  • intersect
    Checks whether the geometry in this shape node intersects with the specified pickShape.
  • numGeometries
    Returns the number of geometry components in this Shape3D node's list of geometry components.
  • checkDuplicateNode
  • checkForCycle
  • cloneTree
  • duplicateAttributes
    Copies all Shape3D information fromoriginalNode into the current node. This method is called from th
  • cloneTree,
  • duplicateAttributes,
  • duplicateNode,
  • getCapability,
  • getCollisionBounds,
  • getNodeComponent,
  • getUserData,
  • isLive,
  • isLiveOrCompiled

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Menu (java.awt)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now