/usr/include/InsightToolkit/Numerics/FEM/itkFEMLoadElementBase.h is in libinsighttoolkit3-dev 3.20.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | /*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkFEMLoadElementBase.h
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __itkFEMLoadElementBase_h
#define __itkFEMLoadElementBase_h
#include "itkFEMLoadBase.h"
namespace itk {
namespace fem {
/**
* \class LoadElement
* \brief Virtual element load base class.
*
* This load class defines an external load that acts on elements in a system.
* The vector with pointers to elements defines, on which elements
* the load acts. The derived load classes should provide members, that allow the
* Element's class Fe() member function to uniquely transform the load into nodal loads.
* No special requirements are enforced on those members.
*
* Ultimately, when assembling the right hand side of the master equation (master force vector)
* the Element's Fe() member funtion is called with the pointer to the LoadElement class that is
* prescribed on that element. Fe() function shuld dynamically cast this pointer to specific
* load class, which it can handle and return the element's force vector.
*/
class LoadElement : public Load
{
FEM_CLASS(LoadElement,Load)
public:
/**
* Float type used in Element and derived classes
*/
typedef Element::Float Float;
/**
* Type of array of pointers to element objects
*/
typedef std::vector<Element::ConstPointer> ElementPointersVectorType;
ElementPointersVectorType el; /** pointers to element objects on which the load acts */
virtual void Read( std::istream& f, void* info );
void Write( std::ostream& f ) const;
// FIXME: should clear vector, not zero it
LoadElement() : el(0) {}
};
FEM_CLASS_INIT(LoadElement)
}} // end namespace itk::fem
#endif // #ifndef __itkFEMLoadElementBase_h
|