v_sim.PlaneSet¶
- Subclasses:
None
Methods¶
- Inherited:
GObject.Object (37), v_sim.Animatable (6), v_sim.Boxed (2), v_sim.NodeMasker (3)
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
how to hide from multiple planes |
||
r/w |
masking property |
||
r |
number of planes |
Signals¶
Name |
Short Description |
|---|---|
This signal is emitted each time a plane is added to the set. |
|
This signal is emitted each time a plane is removed from the set. |
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
||
priv |
r |
Class Details¶
- class v_sim.PlaneSet(**kwargs)¶
- Bases:
GObject.Object,v_sim.Animatable,v_sim.Boxed,v_sim.NodeMasker- Abstract:
No
- Structure:
Common name to refer to a #_VisuPlaneSet.
- classmethod new()¶
- Returns:
the newly created object.
- Return type:
Creates an object to store several planes and do hiding operations with them.
New in version 3.8.
- classmethod newFull(newItem, freeItem, *data)¶
- Parameters:
newItem (
v_sim.PlaneSetItemNew) – a routine to be called when adding a plane to the set.freeItem (
v_sim.PlaneSetItemFree) – a routine to be called when removing a plane from the set.
- Return type:
Creates an object to store several planes and do hiding operations with them.
New in version 3.8.
- add(plane)¶
- Parameters:
plane (
v_sim.Plane) – av_sim.Planeobject.- Returns:
Falseif plane was already registered.- Return type:
Adds a plane to the list of stored planes.
New in version 3.8.
- exportXMLFile(filename)¶
- Parameters:
filename (
str) – the file to export to ;- Raises:
- Returns:
Trueif everything goes right, if not and error (if notNone) is set and contains the message of the error.- Return type:
Export in XML format the given list of planes to the given file.
New in version 3.8.
- getAt(i)¶
- Parameters:
i (
int) – an index.- Returns:
a
v_sim.Planeobject orNoneindex is out of bounds.- Return type:
v_sim.PlaneorNone
Retrieve the plane stored at index i.
New in version 3.8.
- getHiddingStatus()¶
-
Inquire if the self has any masking planes.
New in version 3.8.
- getIntersection(pointA, pointB, inter, inside)¶
- Parameters:
- Returns:
Trueif there is an intersection.- Return type:
Compute the location of the intersection point of segment AB with list of planes self. If there are several intersections, the closest to point A is returned. If inside is
True, then the intersection point must be within the line [AB].New in version 3.8.
- getVisibility(point)¶
- Parameters:
point (
float) – three cartesian coordinates.- Returns:
Trueif the point is not masked.- Return type:
Compute the visibility of the given point, following the masking scheme of the given plane list.
New in version 3.8.
- iter_new()¶
- Returns:
Trueif iterator is valid (i.e. there are planes in self).- iter:
the iterator to create.
- Return type:
(
bool, iter:v_sim.PlaneSetIter)
Creates an iterator on the internal storage of
v_sim.Planeobjects.New in version 3.8.
- parseXMLFile(filename)¶
- Parameters:
filename (
str) – the file to parse ;- Raises:
- Returns:
Trueif everything goes right, if not and error (if notNone) is set and contains the message of the error.- Return type:
Read the given file (syntax in XML) and create a list of planes.
New in version 3.8.
- remove(plane)¶
- Parameters:
plane (
v_sim.Plane) – av_sim.Planeobject.- Returns:
Trueif plane was found and removed.- Return type:
Remove plane from the list of stored planes.
New in version 3.8.
- removeAll()¶
-
Remove all stored planes.
New in version 3.8.
- setHiddingMode(mode)¶
- Parameters:
mode (
v_sim.PlaneSetHiddingEnum) – a value related to the hiding mode (look at the enumv_sim.PlaneSetHiddingEnum).- Returns:
Trueif status changed.- Return type:
This method is used to set the hiding mode flag. In union mode, elements are not drawn if they are hidden by one plane at least. In intersection mode, elements are only hidden if masked by all planes.
New in version 3.8.
Signal Details¶
- v_sim.PlaneSet.signals.added(plane_set, plane)¶
- Signal Name:
added- Flags:
- Parameters:
plane_set (
v_sim.PlaneSet) – The object which received the signalplane (
v_sim.Plane) – the addedv_sim.Planeobject.
This signal is emitted each time a plane is added to the set.
New in version 3.8.
- v_sim.PlaneSet.signals.removed(plane_set, plane)¶
- Signal Name:
removed- Flags:
- Parameters:
plane_set (
v_sim.PlaneSet) – The object which received the signalplane (
v_sim.Plane) – the removedv_sim.Planeobject.
This signal is emitted each time a plane is removed from the set.
New in version 3.8.
Property Details¶
- v_sim.PlaneSet.props.hidding_mode¶
-
how to hide from multiple planes
- v_sim.PlaneSet.props.masking¶
-
masking property