FaceInstance Class Reference

#include <brush.h>

Collaboration diagram for FaceInstance:
Collaboration graph
[legend]

Data Structures

class  RenderablePointVectorPushBack

Public Types

typedef MemberCaller1
< FaceInstance, const
Selectable
&,&FaceInstance::selectedChanged > 
SelectedChangedCaller

Public Member Functions

 FaceInstance (Face &face, const SelectionChangeCallback &observer)
 FaceInstance (const FaceInstance &other)
FaceInstanceoperator= (const FaceInstance &other)
FacegetFace ()
const FacegetFace () const
void selectedChanged (const Selectable &selectable)
bool selectedVertices () const
bool selectedEdges () const
bool isSelected () const
bool selectedComponents () const
bool selectedComponents (SelectionSystem::EComponentMode mode) const
void setSelected (SelectionSystem::EComponentMode mode, bool select)
template<typename Functor >
void SelectedVertices_foreach (Functor functor) const
template<typename Functor >
void SelectedEdges_foreach (Functor functor) const
template<typename Functor >
void SelectedFaces_foreach (Functor functor) const
template<typename Functor >
void SelectedComponents_foreach (Functor functor) const
void iterate_selected (AABB &aabb) const
void iterate_selected (RenderablePointVector &points) const
bool intersectVolume (const VolumeTest &volume, const Matrix4 &localToWorld) const
void render (Renderer &renderer, const VolumeTest &volume, const Matrix4 &localToWorld) const
void testSelect (SelectionTest &test, SelectionIntersection &best)
void testSelect (Selector &selector, SelectionTest &test)
void testSelect_centroid (Selector &selector, SelectionTest &test)
void selectPlane (Selector &selector, const Line &line, PlanesIterator first, PlanesIterator last, const PlaneCallback &selectedPlaneCallback)
void selectReversedPlane (Selector &selector, const SelectedPlanes &selectedPlanes)
void transformComponents (const Matrix4 &matrix)
void snapto (float snap)
void snapComponents (float snap)
void update_move_planepts_vertex (std::size_t index)
void update_move_planepts_vertex2 (std::size_t index, std::size_t other)
void update_selection_vertex ()
void select_vertex (std::size_t index, bool select)
bool selected_vertex (std::size_t index) const
void update_move_planepts_edge (std::size_t index)
void update_selection_edge ()
void select_edge (std::size_t index, bool select)
bool selected_edge (std::size_t index) const
const Vector3centroid () const
void connectivityChanged ()

Data Fields

VectorLightList m_lights

Private Attributes

Facem_face
ObservedSelectable m_selectable
ObservedSelectable m_selectableVertices
ObservedSelectable m_selectableEdges
SelectionChangeCallback m_selectionChanged
VertexSelection m_vertexSelection
VertexSelection m_edgeSelection

Detailed Description

Definition at line 2306 of file brush.h.


Member Typedef Documentation

typedef MemberCaller1<FaceInstance, const Selectable&, &FaceInstance::selectedChanged> FaceInstance::SelectedChangedCaller

Definition at line 2355 of file brush.h.


Constructor & Destructor Documentation

FaceInstance::FaceInstance ( Face face,
const SelectionChangeCallback observer 
) [inline]

Definition at line 2320 of file brush.h.

FaceInstance::FaceInstance ( const FaceInstance other  )  [inline]

Definition at line 2325 of file brush.h.


Member Function Documentation

const Vector3& FaceInstance::centroid (  )  const [inline]

Definition at line 2717 of file brush.h.

References Face::centroid(), and m_face.

Referenced by SelectedFaces_foreach().

void FaceInstance::connectivityChanged (  )  [inline]

Definition at line 2722 of file brush.h.

References m_edgeSelection, m_selectableEdges, m_selectableVertices, and m_vertexSelection.

const Face& FaceInstance::getFace (  )  const [inline]

Definition at line 2341 of file brush.h.

References m_face.

Face& FaceInstance::getFace (  )  [inline]
bool FaceInstance::intersectVolume ( const VolumeTest volume,
const Matrix4 &  localToWorld 
) const [inline]

Definition at line 2473 of file brush.h.

References Face::intersectVolume(), and m_face.

Referenced by render().

bool FaceInstance::isSelected (  )  const [inline]

Definition at line 2365 of file brush.h.

References m_selectable.

Referenced by selectedComponents(), SelectedFaces_foreach(), snapComponents(), and transformComponents().

void FaceInstance::iterate_selected ( RenderablePointVector &  points  )  const [inline]

Definition at line 2468 of file brush.h.

References SelectedComponents_foreach().

void FaceInstance::iterate_selected ( AABB &  aabb  )  const [inline]

Definition at line 2448 of file brush.h.

References SelectedComponents_foreach().

FaceInstance& FaceInstance::operator= ( const FaceInstance other  )  [inline]

Definition at line 2331 of file brush.h.

References m_face.

void FaceInstance::render ( Renderer renderer,
const VolumeTest volume,
const Matrix4 &  localToWorld 
) const [inline]
void FaceInstance::select_edge ( std::size_t  index,
bool  select 
) [inline]
void FaceInstance::select_vertex ( std::size_t  index,
bool  select 
) [inline]
bool FaceInstance::selected_edge ( std::size_t  index  )  const [inline]

Definition at line 2711 of file brush.h.

References getFace(), m_edgeSelection, and VertexSelection_find().

bool FaceInstance::selected_vertex ( std::size_t  index  )  const [inline]

Definition at line 2665 of file brush.h.

References getFace(), m_vertexSelection, and VertexSelection_find().

void FaceInstance::selectedChanged ( const Selectable selectable  )  [inline]
bool FaceInstance::selectedComponents ( SelectionSystem::EComponentMode  mode  )  const [inline]
bool FaceInstance::selectedComponents (  )  const [inline]

Definition at line 2370 of file brush.h.

References isSelected(), selectedEdges(), and selectedVertices().

Referenced by render().

template<typename Functor >
void FaceInstance::SelectedComponents_foreach ( Functor  functor  )  const [inline]

Definition at line 2441 of file brush.h.

References SelectedEdges_foreach(), SelectedFaces_foreach(), and SelectedVertices_foreach().

Referenced by iterate_selected().

bool FaceInstance::selectedEdges (  )  const [inline]

Definition at line 2361 of file brush.h.

References m_edgeSelection.

Referenced by selectedComponents(), snapComponents(), and transformComponents().

template<typename Functor >
void FaceInstance::SelectedEdges_foreach ( Functor  functor  )  const [inline]

Definition at line 2421 of file brush.h.

References getFace(), Face::getWinding(), i, m_edgeSelection, and vector3_mid().

Referenced by SelectedComponents_foreach().

template<typename Functor >
void FaceInstance::SelectedFaces_foreach ( Functor  functor  )  const [inline]

Definition at line 2433 of file brush.h.

References centroid(), and isSelected().

Referenced by SelectedComponents_foreach().

bool FaceInstance::selectedVertices (  )  const [inline]

Definition at line 2357 of file brush.h.

References m_vertexSelection.

Referenced by selectedComponents(), snapComponents(), and transformComponents().

template<typename Functor >
void FaceInstance::SelectedVertices_foreach ( Functor  functor  )  const [inline]

Definition at line 2411 of file brush.h.

References getFace(), i, and m_vertexSelection.

Referenced by SelectedComponents_foreach().

void FaceInstance::selectPlane ( Selector selector,
const Line &  line,
PlanesIterator  first,
PlanesIterator  last,
const PlaneCallback selectedPlaneCallback 
) [inline]
void FaceInstance::selectReversedPlane ( Selector selector,
const SelectedPlanes selectedPlanes 
) [inline]
void FaceInstance::setSelected ( SelectionSystem::EComponentMode  mode,
bool  select 
) [inline]
void FaceInstance::snapComponents ( float  snap  )  [inline]
void FaceInstance::snapto ( float  snap  )  [inline]

Definition at line 2571 of file brush.h.

References m_face, and Face::snapto().

Referenced by snapComponents().

void FaceInstance::testSelect ( Selector selector,
SelectionTest test 
) [inline]

Definition at line 2496 of file brush.h.

References m_selectable, Selector_add(), testSelect(), and SelectionIntersection::valid().

void FaceInstance::testSelect ( SelectionTest test,
SelectionIntersection best 
) [inline]

Definition at line 2490 of file brush.h.

References Face::isFiltered(), m_face, and Face::testSelect().

Referenced by testSelect().

void FaceInstance::testSelect_centroid ( Selector selector,
SelectionTest test 
) [inline]
void FaceInstance::transformComponents ( const Matrix4 &  matrix  )  [inline]
void FaceInstance::update_move_planepts_edge ( std::size_t  index  )  [inline]

Definition at line 2671 of file brush.h.

References Face::getWinding(), m_face, Face::m_move_planepts, and planepts_quantise().

Referenced by update_selection_edge().

void FaceInstance::update_move_planepts_vertex ( std::size_t  index  )  [inline]

Definition at line 2598 of file brush.h.

References m_face, Face::m_move_planepts, and Face::update_move_planepts_vertex().

Referenced by update_selection_vertex().

void FaceInstance::update_move_planepts_vertex2 ( std::size_t  index,
std::size_t  other 
) [inline]
void FaceInstance::update_selection_edge (  )  [inline]

Definition at line 2683 of file brush.h.

References getFace(), m_edgeSelection, m_selectableEdges, and update_move_planepts_edge().

Referenced by select_edge().

void FaceInstance::update_selection_vertex (  )  [inline]

Field Documentation

Definition at line 2318 of file brush.h.

ObservedSelectable FaceInstance::m_selectable [private]
ObservedSelectable FaceInstance::m_selectableEdges [private]

Definition at line 2311 of file brush.h.

Referenced by connectivityChanged(), setSelected(), and update_selection_edge().

ObservedSelectable FaceInstance::m_selectableVertices [private]

Definition at line 2310 of file brush.h.

Referenced by connectivityChanged(), setSelected(), and update_selection_vertex().

Definition at line 2312 of file brush.h.

Referenced by selectedChanged().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2