~holger-seelig/titania/0.7

« back to all changes in this revision

Viewing changes to libtitania-x3d/Titania/X3D/Tools/Layout/ScreenGroupTool.cpp

  • Committer: Holger Seelig
  • Date: 2014-08-29 10:03:21 UTC
  • Revision ID: holger.seelig@yahoo.de-20140829100321-kfqxye305g52ah0e
Added tools for CADGeometry component.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C++; coding: utf-8; tab-width: 3; indent-tabs-mode: tab; c-basic-offset: 3 -*-
2
 
 *******************************************************************************
3
 
 *
4
 
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
 
 *
6
 
 * Copyright create3000, Scheffelstra�e 31a, Leipzig, Germany 2011.
7
 
 *
8
 
 * All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
9
 
 *
10
 
 * THIS IS UNPUBLISHED SOURCE CODE OF create3000.
11
 
 *
12
 
 * The copyright notice above does not evidence any actual of intended
13
 
 * publication of such source code, and is an unpublished work by create3000.
14
 
 * This material contains CONFIDENTIAL INFORMATION that is the property of
15
 
 * create3000.
16
 
 *
17
 
 * No permission is granted to copy, distribute, or create derivative works from
18
 
 * the contents of this software, in whole or in part, without the prior written
19
 
 * permission of create3000.
20
 
 *
21
 
 * NON-MILITARY USE ONLY
22
 
 *
23
 
 * All create3000 software are effectively free software with a non-military use
24
 
 * restriction. It is free. Well commented source is provided. You may reuse the
25
 
 * source in any way you please with the exception anything that uses it must be
26
 
 * marked to indicate is contains 'non-military use only' components.
27
 
 *
28
 
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
29
 
 *
30
 
 * Copyright 1999, 2012 Holger Seelig <holger.seelig@yahoo.de>.
31
 
 *
32
 
 * This file is part of the Titania Project.
33
 
 *
34
 
 * Titania is free software: you can redistribute it and/or modify it under the
35
 
 * terms of the GNU General Public License version 3 only, as published by the
36
 
 * Free Software Foundation.
37
 
 *
38
 
 * Titania is distributed in the hope that it will be useful, but WITHOUT ANY
39
 
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
40
 
 * A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
41
 
 * details (a copy is included in the LICENSE file that accompanied this code).
42
 
 *
43
 
 * You should have received a copy of the GNU General Public License version 3
44
 
 * along with Titania.  If not, see <http://www.gnu.org/licenses/gpl.html> for a
45
 
 * copy of the GPLv3 License.
46
 
 *
47
 
 * For Silvio, Joy and Adi.
48
 
 *
49
 
 ******************************************************************************/
50
 
 
51
 
#include "ScreenGroupTool.h"
52
 
 
53
 
#include "../ToolColors.h"
54
 
 
55
 
namespace titania {
56
 
namespace X3D {
57
 
 
58
 
static constexpr Color3f LIME (0.35, 1, 0.35);
59
 
 
60
 
ScreenGroupTool::ScreenGroupTool (ScreenGroup* const node) :
61
 
                              X3DBaseNode (node -> getExecutionContext () -> getBrowser (), node -> getExecutionContext ()),
62
 
                X3DBaseTool <ScreenGroup> (node),
63
 
        X3DGroupingNodeTool <ScreenGroup> (LIME)
64
 
{
65
 
        addType (X3DConstants::ScreenGroupTool);
66
 
}
67
 
 
68
 
} // X3D
69
 
} // titania