X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.g3d.csg%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fcsg%2Fscenegraph2%2FRectangularSolidNode.java;h=01aaf2cddd5d5880b688cda4d345971239fdf770;hb=refs%2Fchanges%2F08%2F3908%2F2;hp=6fb7f105c9abf9618ee655fe9258012be36f3f5a;hpb=87b3241ec277ba3d8e414b26186a032c9cdcaeed;p=simantics%2F3d.git diff --git a/org.simantics.g3d.csg/src/org/simantics/g3d/csg/scenegraph2/RectangularSolidNode.java b/org.simantics.g3d.csg/src/org/simantics/g3d/csg/scenegraph2/RectangularSolidNode.java index 6fb7f105..01aaf2cd 100644 --- a/org.simantics.g3d.csg/src/org/simantics/g3d/csg/scenegraph2/RectangularSolidNode.java +++ b/org.simantics.g3d.csg/src/org/simantics/g3d/csg/scenegraph2/RectangularSolidNode.java @@ -1,3 +1,14 @@ +/******************************************************************************* + * Copyright (c) 2012, 2013 Association for Decentralized Information Management in + * Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ package org.simantics.g3d.csg.scenegraph2; import org.jcae.opencascade.jni.BRepBuilderAPI_MakeEdge; @@ -27,6 +38,8 @@ public class RectangularSolidNode extends CSGnode { @RelatedSetValue(CSG.URIs.HasXAxisMinimumSize) @SetPropertyValue(CSG.URIs.HasXAxisMinimumSize) public void setX1(double d) { + if (this.x1 == d) + return; this.x1 = d; firePropertyChanged(CSG.URIs.HasXAxisMinimumSize); } @@ -34,6 +47,8 @@ public class RectangularSolidNode extends CSGnode { @RelatedSetValue(CSG.URIs.HasXAxisMaximumSize) @SetPropertyValue(CSG.URIs.HasXAxisMaximumSize) public void setX2(double d) { + if (this.x2 == d) + return; this.x2 = d; firePropertyChanged(CSG.URIs.HasXAxisMaximumSize); } @@ -41,6 +56,8 @@ public class RectangularSolidNode extends CSGnode { @RelatedSetValue(CSG.URIs.HasYAxisSize) @SetPropertyValue(CSG.URIs.HasYAxisSize) public void setSY(double d) { + if (this.y == d) + return; this.y = d; firePropertyChanged(CSG.URIs.HasYAxisSize); } @@ -48,6 +65,8 @@ public class RectangularSolidNode extends CSGnode { @RelatedSetValue(CSG.URIs.HasZAxisMinimumSize) @SetPropertyValue(CSG.URIs.HasZAxisMinimumSize) public void setZ1(double d) { + if (this.z1 == d) + return; this.z1 = d; firePropertyChanged(CSG.URIs.HasZAxisMinimumSize); } @@ -55,6 +74,8 @@ public class RectangularSolidNode extends CSGnode { @RelatedSetValue(CSG.URIs.HasZAxisMaximumSize) @SetPropertyValue(CSG.URIs.HasZAxisMaximumSize) public void setZ2(double d) { + if (this.z2 == d) + return; this.z2 = d; firePropertyChanged(CSG.URIs.HasZAxisMaximumSize); }