Tabnine Logo
Shape3D.isLive
Code IndexAdd Tabnine to your IDE (free)

How to use
isLive
method
in
org.scijava.java3d.Shape3D

Best Java code snippets using org.scijava.java3d.Shape3D.isLive (Showing top 8 results out of 315)

origin: org.scijava/j3dcore

void setAppearanceOverrideEnable(boolean flag) {
if (((Shape3D)this.source).isLive()) {
  // Send a message
  J3dMessage createMessage = new J3dMessage();
  createMessage.threads = targetThreads;
  createMessage.type = J3dMessage.SHAPE3D_CHANGED;
  createMessage.universe = universe;
  createMessage.args[0] = this;
  createMessage.args[1]= new Integer(APPEARANCEOVERRIDE_CHANGED);
  Shape3DRetained[] s3dArr = new Shape3DRetained[mirrorShape3D.size()];
  mirrorShape3D.toArray(s3dArr);
  createMessage.args[2] = s3dArr;
  Object[] obj = new Object[2];
  if (flag) {
  obj[0] = Boolean.TRUE;
  }
  else {
  obj[0]  = Boolean.FALSE;
  }
  obj[1] = new Integer(changedFrequent);
  createMessage.args[3] = obj;
  createMessage.args[4] = getGeomAtomsArray(mirrorShape3D);
  VirtualUniverse.mc.processMessage(createMessage);
}
appearanceOverrideEnable = flag;
}
origin: org.scijava/j3dcore

void removeAllGeometries() {
 int n = geometryList.size();
 int i;
 Shape3DRetained mShape;
 GeometryRetained oldGeom = null;
 if (((Shape3D)this.source).isLive()) {
for(int index = n-1; index >= 0; index--) {
 oldGeom = geometryList.get(index);
 if (oldGeom != null) {
  oldGeom.clearLive(refCount);
  oldGeom.decRefCnt();
  for (i=0; i<mirrorShape3D.size(); i++) {
   mShape = mirrorShape3D.get(i);
   oldGeom.removeUser(mShape);
  }
 }
 geometryList.remove(index);
}
sendDataChangedMessage(null);
 } else {
for(int index = n-1; index >= 0; index--) {
 oldGeom = geometryList.get(index);
 if (oldGeom != null) {
  oldGeom.decRefCnt();
 }
 geometryList.remove(index);
}
 }
 dirtyBoundsCache();
}
origin: org.scijava/j3dcore

if(((Shape3D)this.source).isLive()) {
  if (geometry != null) {
origin: org.scijava/j3dcore

GeometryRetained oldGeom = null;
if (((Shape3D)this.source).isLive()) {
origin: org.scijava/j3dcore

boolean visibleIsDirty = false;
if (((Shape3D)this.source).isLive()) {
  if (appearance != null) {
    appearance.clearLive(refCount);
origin: org.scijava/j3dcore

if (((Shape3D)this.source).isLive()) {
origin: org.scijava/j3dcore

if (((Shape3D)this.source).isLive()) {
origin: org.scijava/j3dcore

/**
 * Draw the specified Shape3D leaf node object.  This is
 * a convenience method that is identical to calling the
 * setAppearance(Appearance) and draw(Geometry) methods
 * passing the appearance and geometry component objects of
 * the specified shape node as arguments.
 *
 * @param shape the Shape3D node containing the Appearance component
 * object to set and Geometry component object to draw
 *
 * @exception IllegalSharingException if the Shape3D node
 * is part of or is subsequently made part of a live scene graph.
 *
 * @exception IllegalSharingException if the Shape3D node's Appearance
 * refers to an ImageComponent2D that is being used by a
 * Canvas3D as an off-screen buffer.
 */
public void draw(Shape3D shape) {
if (shape.isLive()) {
  throw new IllegalSharingException(J3dI18N.getString("GraphicsContext3D26"));
}
  ((Shape3DRetained)shape.retained).setInImmCtx(true);
setAppearance(shape.getAppearance());
draw(shape.getGeometry());
}
org.scijava.java3dShape3DisLive

Popular methods of Shape3D

  • <init>
    Constructs and initializes a Shape3D node with the specified geometry and appearance components. The
  • 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
  • checkForCycle,
  • cloneTree,
  • duplicateAttributes,
  • duplicateNode,
  • getCapability,
  • getCollisionBounds,
  • getNodeComponent,
  • getUserData,
  • isLiveOrCompiled

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • onCreateOptionsMenu (Activity)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top plugins for WebStorm
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