• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

kalzium

Avogadro::Primitive

Avogadro::Primitive Class Reference

#include <primitive.h>

Inheritance diagram for Avogadro::Primitive:

Inheritance graph
[legend]

List of all members.


Detailed Description

Base class for all primitives (Molecule, Atom, Bond, Residue, .

..).

Definition at line 46 of file src/primitive.h.


Public Types

enum  Type {
  OtherType = 0, MoleculeType, AtomType, BondType,
  ResidueType, ChainType, SurfaceType, PlaneType,
  GridType, PointType, VectorType, NonbondedType,
  TextType, LastType, FirstType = OtherType
}

Signals

void updated ()

Public Member Functions

unsigned long id () const
QReadWriteLock * lock ()
 Primitive (Type type, QObject *parent=0)
 Primitive (QObject *parent=0)
void setId (unsigned long m_id)
Type type () const
void update ()
virtual ~Primitive ()

Protected Member Functions

 Primitive (PrimitivePrivate &dd, Type type, QObject *parent=0)
 Primitive (PrimitivePrivate &dd, QObject *parent=0)

Protected Attributes

PrimitivePrivate *const d_ptr

Properties

Type type

Member Enumeration Documentation

enum Avogadro::Primitive::Type

This enum allows us to iterate through the various types of primitives.

Holds the primitive type.

Enumerator:
OtherType  Untyped Primitive.
MoleculeType  Molecule Primitive.
AtomType  Atom Primitive.
BondType  Bond Primitive.
ResidueType  Residue Primitive.
ChainType  Chain Primitive (i.e., a set of residues).
SurfaceType  Surface Primitive.
PlaneType  Plane Primitive.
GridType  Grid Primitive.
PointType  Points (i.e., non-atoms).
VectorType  Vectors (i.e., arrows, dipole moments).
NonbondedType  Non-bonded interactions (i.e., non-bond connections).
TextType  Text annoations.
LastType  End Placeholder.
FirstType  First Placeholder.

Definition at line 57 of file src/primitive.h.


Constructor & Destructor Documentation

Avogadro::Primitive::Primitive ( QObject *  parent = 0  ) 

Default constructor.

Parameters:
parent the object parent

Definition at line 48 of file primitive.cpp.

Avogadro::Primitive::Primitive ( Type  type,
QObject *  parent = 0 
) [explicit]

Constructor.

Parameters:
type the primitive type
parent the object parent

Definition at line 50 of file primitive.cpp.

Avogadro::Primitive::~Primitive (  )  [virtual]

Deconstructor.

Definition at line 64 of file primitive.cpp.

Avogadro::Primitive::Primitive ( PrimitivePrivate &  dd,
QObject *  parent = 0 
) [protected]

Definition at line 56 of file primitive.cpp.

Avogadro::Primitive::Primitive ( PrimitivePrivate &  dd,
Type  type,
QObject *  parent = 0 
) [protected]

Definition at line 58 of file primitive.cpp.


Member Function Documentation

unsigned long Avogadro::Primitive::id (  )  const

Definition at line 92 of file primitive.cpp.

QReadWriteLock * Avogadro::Primitive::lock (  ) 

Definition at line 75 of file primitive.cpp.

void Avogadro::Primitive::setId ( unsigned long  m_id  ) 

Definition at line 86 of file primitive.cpp.

Type Avogadro::Primitive::type (  )  const

Returns:
the primitive type (one of Primitive::Type)

void Avogadro::Primitive::update (  ) 

Function used to push changes to a primitive to the rest of the system.

At this time there is no way (other than this) to generate a signal when properties of a primitive change.

In the case of the Atom primitive, this should be called when changes to coordinates have been made.

Reimplemented in Avogadro::Molecule.

Definition at line 81 of file primitive.cpp.

void Avogadro::Primitive::updated (  )  [signal]

Emitted when the primitive has been updated.


Member Data Documentation

PrimitivePrivate* const Avogadro::Primitive::d_ptr [protected]

Definition at line 141 of file src/primitive.h.


Property Documentation

enum Primitive::Type Avogadro::Primitive::type [read]

Definition at line 49 of file src/primitive.h.


The documentation for this class was generated from the following files:
  • src/primitive.h
  • primitive.cpp

kalzium

Skip menu "kalzium"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal