1 /*****************************************************************************
2 * Virtual Mockup for Machine Vision
3 * Copyright (C) 2001-2003 Fabio R. de Miranda, João E. Kogler Jr.,
4 * Carlos S. Santos.
5 * Virtual Mockup for Machine Vision Project funded by SENAC-SP
6 *
7 * Permission is granted to redistribute and/or modify this
8 * software under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License (http://www.gnu.org/copyleft/lesser.html)
16 * for more details.
17 *
18 *****************************************************************************/
19
20 package camera3d.event;
21
22
23 /***
24 * Superclass to all events related to VcObjects
25 *
26 * @author Fábio Roberto de Miranda, Carlos da Silva dos Santos
27 * @see camera3d.VcObject
28 */
29 public class VcObjectEvent extends VcEvent {
30
31
32 public static final int UNKNOWN_TYPE = -1;
33 public static final int TRANSFORM_CHANGED = 0;
34 public static final int TRANSLATION_CHANGED = 1;
35 public static final int ROTATION_CHANGED = 2;
36 public static final int SCALE_CHANGED = 3;
37 public static final int LABEL_CHANGED = 4;
38 public static final int NODE_ADDED = 5;
39 public static final int NODE_REMOVED = 6;
40 public static final int ALLNODES_REMOVED = 7;
41 public static final int CHILD_ADDED = 8;
42 public static final int CHILD_REMOVED = 9;
43 public static final int OBJECT_DETACHED = 10;
44 public static final int LASER_ARRAY_CHANGED = 11;
45 public static final int DISTANCE_MEASURER_CHANGED = 12;
46 public static final int VCVIEW_CHANGED = 13;
47
48 int type;
49
50 public VcObjectEvent(Object source) {
51 super(source);
52 type = VcObjectEvent.UNKNOWN_TYPE;
53 }
54
55 public int getType(){
56 return this.type;
57 }
58
59 public void setType( int type){
60 this.type = type;
61 }
62
63 }
This page was automatically generated by Maven