KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ifsg_index.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2015 Cirilo Bernardo <[email protected]>
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program 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
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 */
20
21
22#include <iostream>
23#include <sstream>
24#include <wx/log.h>
25
28
29
33
34
35bool IFSG_INDEX::GetIndices( size_t& nIndices, int*& aIndexList )
36{
37 wxCHECK( m_node, false );
38
39 return ( (SGINDEX*) m_node )->GetIndices( nIndices, aIndexList );
40}
41
42
43bool IFSG_INDEX::SetIndices( size_t nIndices, int* aIndexList )
44{
45 wxCHECK( m_node, false );
46
47 ( (SGINDEX*) m_node )->SetIndices( nIndices, aIndexList );
48
49 return true;
50}
51
52
53bool IFSG_INDEX::AddIndex( int aIndex )
54{
55 wxCHECK( m_node, false );
56
57 ( (SGINDEX*) m_node )->AddIndex( aIndex );
58
59 return true;
60}
bool GetIndices(size_t &nIndices, int *&aIndexList)
bool AddIndex(int aIndex)
Add a single index to the list.
bool SetIndices(size_t nIndices, int *aIndexList)
Set the number of indices and creates a copy of the given index data.
SGNODE * m_node
Definition ifsg_node.h:47
Define a generic index interface for a scenegraph object.
Definition sg_index.h:35
defines the index nodes wrapper