Opale
  presentation
  news
  faq
  docs
  team
  download
  Modules
  2d
 
  presentation
  examples
  doc
  links
 
3d
 
ode
  matrix
 
parser
Applications
Bugs
 

Presentation

The 2D module is within Opale since its first version. Its purpose is to offer a simple and coherent API to show and study mathematical objects in 2D space. The module supports the needs of any mathematician to model a 2D geometric problem : existence of an absolute coordinate system, building of one or several coordinate systems (rectangular or not), abstract and visual building and management (intersections, transformations, ...) of objects in those coordinate systems.

To fulfill at the best its goal, the 2D module presents itself, as every Java API, as a set of classes united coherently in packages. So, we can see a main package opale.m2d and applicative subpackages opale.m2d.object2d and opale.m2d.component2d :

  • opale.m2d is the core of 2D package. Its classes are the base to define coordinate systems and to build 2d visual scene. You can find also an abstract class used to define a 2D mathematical object, and also objects as Point & Vector. By design, this package can't see its subpackages.
  • opale.m2d.object2d provides mathematical objects as lines, parametrable curves, cones ... Of course, one of the goals in this package is to increase supported objects.
  • opale.m2d.component2d contains classes to easily render a 2D scene described with classes of previous packages. For example, thoses classes extend java.awt.Frame and javax.swing.JFrame classes to offer adapted windows to display a 2D world with the 2D module.

Since the beginning, this module was built to easily evoluate from a mathematical point of view, with for example the ability to build usual coordinate systems, built in each others, but also from a class design point of view by adding simply and quickly new classes.

Therefore, 2D module presents a java class collection freely usable in your java programs which required 2D objects. You can also use all of these functionalities by reading data files (written in ASCII format), easier than a java program. Look at examples using it : the viewer OAVE and the application ODRO, from Opale project.

Look also our commented examples of 2d module applications.


Opale Team : January 31 2004 23:14:10.






valid xhtml image