Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
SchematicExporter.h
1/*
2 * Copyright (C) 2025 Andrés Martínez Mera - andresmmera@protonmail.com
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18#ifndef SCHEMATICEXPORTER_H
19#define SCHEMATICEXPORTER_H
20
22
24
29public:
33 virtual ~SchematicExporter() = default;
34
39 virtual QString exportSchematic() = 0;
40
41protected:
42 // Scaling factor wrt the tool's schematic viewer
43 int scale_x;
44 int scale_y;
45
46 // Offset, introduced for parsing some components
49
55 QMap<QString, QList<QPoint>> ComponentPinMap;
56};
57
58#endif // SCHEMATICEXPORTER_H
Container for schematic circuit data (definition)
Container for schematic circuit data.
Definition SchematicContent.h:27
Definition SchematicExporter.h:28
int scale_y
y-axis scale factor
Definition SchematicExporter.h:44
virtual QString exportSchematic()=0
Export function.
int scale_x
x-axis scale factor
Definition SchematicExporter.h:43
QMap< QString, QList< QPoint > > ComponentPinMap
Maps component identifiers to their pin position lists.
Definition SchematicExporter.h:55
virtual ~SchematicExporter()=default
Class destructor.
int y_offset
y-axis offset
Definition SchematicExporter.h:48
int x_offset
x-axis offset
Definition SchematicExporter.h:47