svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_geometries / src / org / gvsig / fmap / geom / primitive / Solid.java @ 40359
History | View | Annotate | Download (2.66 KB)
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
4 |
* of the Valencian Government (CIT)
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
*/
|
22 |
|
23 |
/*
|
24 |
* AUTHORS (In addition to CIT):
|
25 |
* 2009 {Iver T.I.} {Task}
|
26 |
*/
|
27 |
/*
|
28 |
* AUTHORS (In addition to CIT):
|
29 |
* 2009 Instituto de Autom?tica e Inform?tica Industrial, UPV.
|
30 |
*/
|
31 |
package org.gvsig.fmap.geom.primitive; |
32 |
|
33 |
/**
|
34 |
* <p>
|
35 |
* This interface is equivalent to the GM_Solid specified in <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012"
|
36 |
* >ISO 19107</a>. Solid is a subclass of {@link Primitive}, and is the basis
|
37 |
* for 3-dimensional geometry. The extent of a solid is defined by the boundary
|
38 |
* surfaces.
|
39 |
* </p>
|
40 |
*
|
41 |
* @see <a
|
42 |
* href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO
|
43 |
* 19107</a>
|
44 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
|
45 |
* @author <a href="mailto:jtorres@ai2.upv.es">Jordi Torres Fabra</a>
|
46 |
* @author <a href="mailto:rgaitan@ai2.upv.es">Rafa Gaitán Linares</a>
|
47 |
*/
|
48 |
public interface Solid extends Primitive { |
49 |
|
50 |
/**
|
51 |
* Add a surface to the Solid
|
52 |
*
|
53 |
* @param surface
|
54 |
* the surface to add
|
55 |
*/
|
56 |
public void addSurface(Surface surface); |
57 |
|
58 |
/**
|
59 |
* Remove surface from solid at concrete position
|
60 |
*
|
61 |
* @param position
|
62 |
* the concrete position
|
63 |
*/
|
64 |
public void removeSurface(int position); |
65 |
|
66 |
/**
|
67 |
* Get the number of surfaces in a solid
|
68 |
*
|
69 |
* @return the number of surfaces
|
70 |
*/
|
71 |
public int getNumSurfaces(); |
72 |
|
73 |
/**
|
74 |
* Gets a surface in a concrete position
|
75 |
*
|
76 |
* @param position
|
77 |
* the concrete position
|
78 |
* @return the surface
|
79 |
*/
|
80 |
public Surface getSurfaceAt(int position); |
81 |
|
82 |
/**
|
83 |
* Sets the appearance of a Solid
|
84 |
*
|
85 |
* @param app
|
86 |
* the appearance
|
87 |
*/
|
88 |
public void setAppearance(Appearance app); |
89 |
|
90 |
/**
|
91 |
* Gets the appearance of a solid
|
92 |
*
|
93 |
* @return
|
94 |
*/
|
95 |
public Appearance getAppearance();
|
96 |
|
97 |
} |