[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Camera.java, 1.38, 1.39
Status: Pre-Alpha
Brought to you by:
henryml
|
From: rimestad <rim...@us...> - 2007-03-06 14:44:05
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8948/src/net/sourceforge/bprocessor/model Modified Files: Camera.java Log Message: started on eye Index: Camera.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Camera.java,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** Camera.java 22 Feb 2007 12:36:54 -0000 1.38 --- Camera.java 6 Mar 2007 14:11:35 -0000 1.39 *************** *** 71,74 **** --- 71,77 ---- private static final double RELATION = 2.54; + /** Hidden geometrics */ + private Set<Geometric> hiddenGeometrics; + /** * The constructor for the persistence layer *************** *** 76,79 **** --- 79,83 ---- Camera() { this.clipplanes = new ArrayList<ClippingPlane>(); + this.hiddenGeometrics = new HashSet<Geometric>(); } *************** *** 87,90 **** --- 91,95 ---- */ public Camera(String name, double[] center, double[] camera, double[] roll, int type) { + this(); this.name = name; this.center = center; *************** *** 92,96 **** this.roll = roll; this.focalwidth = 35; - this.clipplanes = new ArrayList<ClippingPlane>(); if (type == ORTHOGRAPHIC || type == PERSPECTIVE) { this.type = type; --- 97,100 ---- *************** *** 766,768 **** --- 770,796 ---- camera[2] = center[2] + back.getZ(); } + + /** + * @return Returns the hiddenGeometrics. + */ + public Set<Geometric> getHiddenGeometrics() { + return hiddenGeometrics; + } + + /** + * Remove a hidden geometric + * @param g the geometric to remove from hidden + * @return true if the geometric were in the set and removed otherwise false + */ + public boolean removeHiddenGeometric(Geometric g) { + return hiddenGeometrics.remove(g); + } + + /** + * Add a hidden geometric + * @param g the geometric to add to hidden + */ + public void addHiddenGeometric(Geometric g) { + hiddenGeometrics.add(g); + } } |