Commit 63672104 authored by daniel.bub's avatar daniel.bub
Browse files

[REFAC #60] start methods with lowercase

parent 13a2315d
......@@ -50,7 +50,7 @@ boost::shared_ptr< WDataSetPoints > WMCsvConverter::getPoints()
void WMCsvConverter::setOutputFromCSV( )
{
if( !m_protonData->IsRequiredDataAvailable() )
if( !m_protonData->isRequiredDataAvailable() )
{
return;
}
......@@ -284,7 +284,7 @@ void WMCsvConverter::createOutputPoints()
void WMCsvConverter::createOutputFibers()
{
calculateFibers();
if(!m_protonData->IsColumnAvailable("eventID"))
if(!m_protonData->isColumnAvailable("eventID"))
{
m_fibers = boost::shared_ptr< WDataSetFibers >(
new WDataSetFibers(
......@@ -309,7 +309,7 @@ void WMCsvConverter::createOutputFibers()
);
}
if(m_protonData->IsColumnAvailable("edep"))
if(m_protonData->isColumnAvailable("edep"))
{
m_fibers->addColorScheme( m_vectors->getColors(), "Energy deposition", "Color fibers based on their energy." );
}
......@@ -317,7 +317,7 @@ void WMCsvConverter::createOutputFibers()
void WMCsvConverter::addEventID( WDataSetCSV::Content::iterator dataRow )
{
if(m_protonData->IsColumnAvailable("eventID"))
if(m_protonData->isColumnAvailable("eventID"))
{
if(dataRow->at( m_indexes->getEventID() ) == "NULL")
{
......
......@@ -91,7 +91,7 @@ int WMProtonData::getColumnIndex( std::string columnName )
return m_columnMap[columnName];
}
bool WMProtonData::IsRequiredDataAvailable()
bool WMProtonData::isRequiredDataAvailable()
{
static const std::string necessaryColumns[] = {
"posX", "posY", "posZ"
......@@ -109,7 +109,7 @@ bool WMProtonData::IsRequiredDataAvailable()
return true;
}
bool WMProtonData::IsNonrequiredDataAvailable()
bool WMProtonData::isNonrequiredDataAvailable()
{
static const std::string unNecessaryColumns[] = {
"PDGEncoding", "edep", "trackID", "parentID", "eventID"
......@@ -127,7 +127,7 @@ bool WMProtonData::IsNonrequiredDataAvailable()
return false;
}
bool WMProtonData::IsColumnAvailable( std::string columnName )
bool WMProtonData::isColumnAvailable( std::string columnName )
{
return m_availabilityColumnMap[columnName];
}
......
......@@ -98,21 +98,21 @@ public:
*
* \return true when initialized. false if they are not initialized
*/
bool IsRequiredDataAvailable();
bool isRequiredDataAvailable();
/**
* checks whether columns are missing
*
* \return true if column is missing . false if column is not missing
*/
bool IsNonrequiredDataAvailable();
bool isNonrequiredDataAvailable();
/**
* checks whether columns are available
*
* \return true if column is available . false if column is not available
*/
bool IsColumnAvailable( std::string columnName );
bool isColumnAvailable( std::string columnName );
private:
/**
......
......@@ -48,7 +48,7 @@ void WMEventIDLimitationPropertyHandler::createProperties()
void WMEventIDLimitationPropertyHandler::updateProperty()
{
if(m_protonData->IsColumnAvailable("eventID"))
if(m_protonData->isColumnAvailable("eventID"))
{
m_minCap->setHidden( false );
m_maxCap->setHidden( false );
......
......@@ -53,7 +53,7 @@ void WMFilterPropertyHandler::updateProperty()
m_filteringGroup->removeProperty( m_multiSelection );
createMultiSelectionForPDG();
if( m_protonData->IsColumnAvailable( "parentID" ) && m_protonData->IsColumnAvailable( "trackID" ) )
if( m_protonData->isColumnAvailable( "parentID" ) && m_protonData->isColumnAvailable( "trackID" ) )
{
m_showPrimaries->setHidden( false );
m_showSecondaries->setHidden( false );
......@@ -64,7 +64,7 @@ void WMFilterPropertyHandler::updateProperty()
m_showSecondaries->setHidden( true );
}
if( m_protonData->IsColumnAvailable( "PDGEncoding" ) )
if( m_protonData->isColumnAvailable( "PDGEncoding" ) )
{
m_multiSelection->setHidden( false );
}
......
......@@ -56,10 +56,10 @@ void WMVisualizationPropertyHandler::createProperties()
void WMVisualizationPropertyHandler::updateProperty()
{
if( m_protonData->IsColumnAvailable( "posX" ) &&
m_protonData->IsColumnAvailable( "posY" ) &&
m_protonData->IsColumnAvailable( "posZ" ) &&
m_protonData->IsColumnAvailable( "edep" ) )
if( m_protonData->isColumnAvailable( "posX" ) &&
m_protonData->isColumnAvailable( "posY" ) &&
m_protonData->isColumnAvailable( "posZ" ) &&
m_protonData->isColumnAvailable( "edep" ) )
{
m_sizesFromEdep->setHidden( false );
m_colorFromEdep->setHidden( false );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment