39 _from_portal_mask = mask;
53 _into_portal_mask = mask;
72 return _from_portal_mask;
86 return _into_portal_mask;
107 _flags |= F_portal_geom;
109 _flags &= ~F_portal_geom;
121 return (_flags & F_portal_geom) != 0;
143 _vertices.push_back(vertex);
153 return _vertices.size();
163 nassertr(n >= 0 && n < (
int)_vertices.size(),
LPoint3::zero());
void set_into_portal_mask(PortalMask mask)
Sets the "into" PortalMask.
bool is_open()
Is this portal open from current camera zone.
void set_portal_mask(PortalMask mask)
Simultaneously sets both the "from" and "into" PortalMask values to the same thing.
void set_open(bool value)
Python sets this based on curent camera zone.
static const LPoint3f & zero()
Returns a zero-length point.
PortalMask get_from_portal_mask() const
Returns the current "from" PortalMask.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
bool is_clip_plane()
Is this portal clipping against its left-right planes.
void set_clip_plane(bool value)
this is set if the portal will clip against its left and right planes
void set_max_depth(int value)
Set the maximum depth this portal will be visible at.
void set_cell_in(const NodePath &cell)
Sets the cell that this portal belongs to.
int get_num_vertices() const
Returns the number of vertices in the portal polygon.
void set_portal_geom(bool flag)
Sets the state of the "portal geom" flag for this PortalNode.
NodePath get_cell_out() const
Sets the cell that this portal leads out to.
bool get_portal_geom() const
Returns the current state of the portal_geom flag.
const LPoint3 & get_vertex(int n) const
Returns the nth vertex of the portal polygon.
bool is_visible()
Is this portal facing the camera.
void set_from_portal_mask(PortalMask mask)
Sets the "from" PortalMask.
void clear_vertices()
Resets the vertices of the portal to the empty list.
virtual void enable_clipping_planes()
initialize the clipping planes and renderstate
NodePath get_cell_in() const
Sets the cell that this portal belongs to.
void add_vertex(const LPoint3 &vertex)
Adds a new vertex to the portal polygon.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
PortalMask get_into_portal_mask() const
Returns the current "into" PortalMask.
int get_max_depth()
Returns the maximum depth this portal will be visible at.
void set_visible(bool value)
this is set if the portal is facing camera
void set_cell_out(const NodePath &cell)
Sets the cell that this portal leads out to.