Overview
TheTreeElectric unit provides specialized shapes for creating electronic circuit diagrams and electrical schematics in TeeTree. These shapes represent common electrical components and logic gates.
Inheritance Hierarchy
Base Class
TElectricShape
Electric Shape
Base class for all electrical component shapes.
Resistors
TResistorShape
Resistor
Standard resistor with zigzag pattern.
- Horizontal lines at ends (terminals)
- Six zigzag segments in the middle
- Total width divided into 8 segments
TSolidResistorShape
Solid Resistor
Modern resistor symbol (rectangular box).
- Rectangle in the middle (2/3 of width)
- Terminal lines extending from each end
TFuseShape
Fuse
Fuse symbol (resistor box with center line).
Capacitors
TCapacitorShape
Capacitor
Standard capacitor symbol.
- Two vertical lines in the center (2-8 pixels apart)
- Horizontal terminal lines extending from center to edges
Semiconductors
TDiodeShape
Diode
Diode symbol with triangle and line.
- Horizontal terminal lines (1/3 of width each end)
- Vertical line on left
- Filled triangle pointing from left to right line
Power and Ground
TGroundShape
Ground
Ground connection symbol.
- Vertical line from top to center
- Three horizontal lines below, each progressively shorter
- Lines spaced at 1/4 height intervals
TSourceShape
Source/Battery
Voltage source or battery symbol.
- Vertical lines extending from top and bottom
- Circle in the middle
- Plus sign in upper portion
- Minus sign in lower portion
TChasisShape
Chassis Ground
Chassis ground connection.
clBlack
Drawing:
- Vertical line from top
- Rectangle body (2/3 height)
- Diagonal hatched lines at bottom
Logic Gates
TOrGateShape
OR Gate
Logical OR gate symbol.
- Curved input side (concave)
- Curved output side (convex)
- 33 points for smooth curves
TAndGateShape
AND Gate
Logical AND gate symbol.
- Flat vertical line on left (input side)
- Semi-circular curve on right (output side)
- 33 points for smooth output curve
Indicators
TLampShape
Lamp/LED
Lamp or LED indicator.
TOctagonShape).
Default Color: clYellow
Drawing:
- Octagonal border
- Two diagonal lines forming X inside (1/5 from edges)
Complete Circuit Example
Logic Circuit Example
Component Properties
Terminal Connections
Electric shapes are designed to connect at their centers by default. For precise connections:Component Labels
Use text properties to add component values:Wire Styling
Customize connection appearance:Shape Registration
Electric shapes are automatically registered in the component palette under the “Electric” tab:- Resistor
- Solid Resistor
- Fuse
- Capacitor
- Diode
- Ground
- Source
- Chasis
- OR Gate
- AND Gate
- Lamp
Drawing Conventions
Circuit Layout
- Power: Top of diagram (red wires)
- Ground: Bottom of diagram (black wires)
- Signal Flow: Left to right
- Components: Horizontal orientation preferred
Color Coding
Component Sizing
Complex Circuit Example
See Also
Basic Shapes
Fundamental geometric shapes
Flowchart Shapes
Process diagram shapes
UML Shapes
UML diagram shapes
Custom Shapes
Create custom shapes
