summaryrefslogtreecommitdiff
path: root/cad/src/experimental/CoNTub/Atomo.java
blob: b60e46bad5efba8f1dc9a7245b1f3b915ff7e7b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import java.awt.Color;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;

class Atomo
{
	int tipo = 0;
	int selec = 0;
	String etiq = "  ";
	String pers = "  ";
	pto3D vert = null;
	Color color = null;
	double r = 0;		//de doubles
	int mconec[];
	int mconecA[];		//array de conec alternativas (para newzmat)
	TabPe TablaP;
	int index;

	  Atomo ()
	{
		vert = new pto3D (0.0, 0.0, 0.0);
		tipo = 0;
		r = 0.0;
		selec = 0;
		color = Color.black;
		etiq = "  ";
		pers = "  ";
		mconec = new int[10];
		  mconecA = new int[10];
		  TablaP = TabPe.getInstance();

	}

	Atomo (int t, int s, String e, String p, pto3D pto, Color c, double radio)
	{
		tipo = t;
		etiq = e;
		pers = p;
		vert = pto.clona ();
		color = c;
		r = radio;
		mconec = new int[10];
		mconecA = new int[10];
		TablaP = TabPe.getInstance();

	}

	Atomo (pto3D p, int t)
	{
		TablaP = TabPe.getInstance();
		tipo = t;
		vert = p.clona ();
		etiq = TablaP.getSimbolo (t);
		pers = "  ";
		color = TablaP.getColor (t);
		r = TablaP.getSize (t);
		mconec = new int[10];
		mconecA = new int[10];

	}

	Atomo (pto3D p, int t, Color c)
	{
		TablaP = TabPe.getInstance();
		tipo = t;
		vert = p.clona ();
		etiq = TablaP.getSimbolo (t);
		pers = "  ";
		color = c;
		r = TablaP.getSize (t);
		mconec = new int[10];
		mconecA = new int[10];

	}
//LISTA DE METODOS BASICOS!!!



}